1 Reply Latest reply on Dec 19, 2016 4:45 PM by James Perkins

    Debug of the wildfly 10.1.0 testsuite

    Luca Stancapiano Apprentice

      I would debug some of the tests in the wildfly-testsuite project.

       

      I downloaded the wildfly-10.1.0-Final sources. For example I would try the integration basic tests inside the directory: testsuite/integration/basic

       

      I use the command line with:

       

      mvn test -Dtest=org.jboss.as.test.integration.ee.injection.resource.basic.ResourceInjectionTestCase

       

      And it results OK. Now I try to use the remote debugger supplied by the surefire maven plugin:

       

      mvn test -Dtest=org.jboss.as.test.integration.ee.injection.resource.basic.ResourceInjectionTestCase -Dmaven.surefire.debug

       

      With my Eclipse IDE , I succeed to debug the arquillian junit client but I cannot debug the EJB inside the test or the same annotated tests inside the wildfly instance.

       

      What I miss?

       

        • 1. Re: Debug of the wildfly 10.1.0 testsuite
          James Perkins Master

          Because the EJB would run inside the container which is managed by Arquillian you need to tell Arquillian to start up the container with a debugger listener. This can be accomplished with just passing a system property -Ddebug. If you want to change the listening port just use -Das.debug.port.

           

          Something like:

          mvn test -Dtest=org.jboss.as.test.integration.ee.injection.resource.basic.ResourceInjectionTestCase -Ddebug -Das.debug.port=5005
          

           

          --

          James R. Perkins