Reputation: 41
How do you add a post-build action in Jenkins to kick off unit and integration tests using sbt 0.13? JUnit is the testing suite that I'm using, and there doesn't seem to be a way for the test results to be in a junitxml output.
Upvotes: 2
Views: 1949
Reputation: 4182
Use the maven surefire plugin in your build.sbt to generate the xml report.
libraryDependencies += "org.apache.maven.plugins" %% "maven-surefire-report-plugin" % "2.17"
Then your Post-build Action is to Publish JUnit test result report
, which will be located here:
target/surefire-reports/TEST-*.xml
Upvotes: 2