cd C:\Jenkins\workspace\{RepoName}\src
set CLASSPATH=.;%CLASSPATH%;C:\SeleniumJars\junit-4.11.jar;C:\SeleniumJars\selenium-server-standalone-2.45.0.jar
javac {classname}.java
java org.junit.runner.JUnitCore {classname}
There is nothing wrong with your approach below. Figure out where the junit test results are being placed and you can use the publish junit plugin to create a nice chart on the build page.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com.
Simon, Sorry if this is really basic stuff but I’m just trying to help:
Your build job first pulls the sources from Github. Now forget about Github, your build is running on the Jenkins master in the folder
C:\Jenkins\workspace\
I am assuming your batch file commands do what you want. I run nUnit tests not jUnit tests. After your batch file runs, there should be some jUnit test results file somewhere in
C:\Jenkins\workspace\
Find them, then add a post-build step to publish them
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6e77b407-b890-45b1-b109-8feb660fd416%40googlegroups.com.