Hey Cesar

A few things get run during the tests, and they can be debugged by passing
the correct option(s) to the runtests script. You can get details if you do
runtests --help, but here's the options you want:

    -de,--debug-embedded    Enable TCK embedded ejb debug options (port
5001)
    -dh,--debug-harness     Enable TCK harness debug options (port 5002)
    -da,--debug-appclient   Enable TCK appclient debug options (port 5003)
    -dj,--debug-javatest    Enable TCK javatest debug options (port 5004)
    -ds,--debug-server      Enable Server debug options (port 5005)

The options you want somewhat inconveniently depend on what test you're
running. So for an app client test, you probably want -da and maybe -dj as
well. For a server test, most likely -ds (and maybe -da as well).

Its a bit like debugging an Arquillian test that uses @RunOnClient, using
the TomEE remote adapter. You can debug the test actually running in
surefire (-Dmaven.surefire.debug) and the server itself
(-Dopenejb.server.debug).

Hope that helps.

Jon

On Mon, Jan 28, 2019 at 10:31 PM César Hernández Mendoza <
[email protected]> wrote:

> Hi,
>
> I created the following document to track my TCK related work.
>
> https://docs.google.com/spreadsheets/d/1oYO0RN-rg4Z7TgSLJ2u4iK4hOFHOXA49ech2y0N3kVw/edit?usp=sharing
>
> As you can see I executed today the tests from the  "appclient" category.
>
> One of the failing test is:
> com/sun/ts/tests/appclient/deploy/ejblink/single/Client#testCMP11
>
> The way I'm executing just that tests is with the following command:
> ./runtests --web tomee-plume -c -sql active -da
> com/sun/ts/tests/appclient/deploy/ejblink/single/Client#testCMP11
>
> Notice that I'm adding:
>  -sql to enable (according to with runtests script code [1]) required
> databases to be created.
> -da to enable TCK appclient debug options (port 5003)
>
> Then on my IntelliJ, I opened Jakarta-tck project [3] and  set up a remote
> debug configuration for Listen to Remote JVM at port: 5003
>
> Unfortunately, I'm not able to make this to work and degub the failing
> test.
>
>
> [1] https://github.com/apache/tomee-tck/blob/master/runtests#L30
> [2]  https://github.com/apache/tomee-tck/blob/master/runtests#L38
> [3] https://jenkins.eclipse.org/jakartaee-tck/
>
> --
> Atentamente:
> César Hernández Mendoza.
>

Reply via email to