Daniel Fisher (lennybacon.com)

SOA, DATA & THE WEB

Debugging Arquillian Tests in IntelliJ

Clone the tutorial repository from: https://github.com/arquillian/arquillian-examples

In IntelliJ click “File | Open” and select the sub director named “arquillian-tutorial”.

After the dependencies are resolve the project structure is shown.

image

Now I can set a breakpoint in a test, right click the test file and click “Debug ‘GreeterTest’”:

image

The stacktrace shows I’m debugging the test using the Arquillian stack.

image

The test was executed in the embedded version of Wildfly as the console window reveals:

image

If we want to remote debug in an running Wildfly instance (daemon or service) we have to modify the start parameters and add “--debug 8000” where 8000 is the port you want to debug.

image

image

Comments

Write a comment