Table of Contents |
---|
...
Code Block | ||
---|---|---|
| ||
<junit fork="yes"> <jvmarg value="-javaagent:${sealights.dir}/sl-test-listener.jar"/> <jvmarg value="-Dsl.tokenFile=${sealights.dir}/sltoken.txt"/> <jvmarg value="-Dsl.buildSessionIdFile=buildSessionId.txt"/> <jvmarg value="-Dsl.testStage=Unit Tests"/> </junit> |
JUnit 5.x
When tests are running in the same process, the listener needs to be passed using the
jvmarg
attribute-javaagent
parameter with Sealights' Anonymous Execution mode deactivated.When tests are running in a different process (via a fork), we need to add the
start
andend
commands before and after tests execution
Same process (not forked) | Different process (forked) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Info |
---|
See 'Java Command Reference - Installing test listener as Java Agent' for full parameter details |
Sample integration into an existing ANT project
...