reportportal / agent-java-junit

Report Portal agent for JUnit 4
Apache License 2.0
11 stars 17 forks source link

The forked VM terminated without properly saying goodbye. VM crash or System.exit called? #102

Closed kapcool closed 1 year ago

kapcool commented 1 year ago

While adding below plugin

org.apache.maven.plugins maven-surefire-plugin 2.22.0 -javaagent:${com.nordstrom.tools:junit-foundation:jar}

i am getting this error. Error occurred in starting fork, check output in log Process Exit Code: 1

under surefire reports, below log is coming in file Error opening zip file or JAR manifest missing : ${com.nordstrom.tools:junit-foundation:jar}

Please help here or help me with the steps to resolve this.

HardNorth commented 1 year ago

@kapcool Most likely you missed "maven-dependency-plugin" which does ${com.nordstrom.tools:junit-foundation:jar} property resolve, see: https://github.com/reportportal/agent-java-junit#step-52---make-report-portal-agent-invoked-by-the-tests

Please also use our examples here: https://github.com/reportportal/examples-java/tree/master/example-junit I recently checked it, it works just with mvn test.