Guest User

Untitled

a guest
Aug 17th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Can I ask JUnit to generate a summary from the command line, without the JUnit ant task?
  2. <target name="junit" depends="compile, compile-tests">
  3. <junit printsummary="yes" fork="yes">
  4. <classpath>
  5. <!-- classpath entries -->
  6. </classpath>
  7. <formatter type="xml" />
  8. <test name="path.to.test.suite.AllTests" />
  9. <jvmarg value="-javaagent:/path/to/jmockit/jmockit.jar" />
  10. </junit>
  11. </target>
  12.  
  13. <target name="run-instrumented" depends="compile-instrumented">
  14. <java fork="true" classname="org.codecover.junit4.core.TestRunner">
  15. <classpath>
  16. <!-- classpath entries -->
  17. </classpath>
  18. <jvmarg value="-Dorg.codecover.coverage-log-file=test.clf" />
  19. <jvmarg value="-javaagent:/path/to/jmockit/jmockit.jar" />
  20. <arg value="path.to.test.suite.AllTests" />
  21. </java>
  22. </target>
Add Comment
Please, Sign In to add comment