Skip to content
#1 Compare This branch is 4 commits ahead of jrudolph:master.
Latest commit cb0a6d4 Aug 5, 2011 @ijuma Merge branch 'sbt-0.10'
* sbt-0.10:
  Remove hardcoded sbt.version.
  Port to SBT 0.10.0.
Failed to load latest commit information.
src/main/scala/eu/henkelmann/sbt Port to SBT 0.10.0. Jun 7, 2011
.gitignore Initial commit Nov 12, 2010
LICENSE Initial commit Nov 12, 2010 Introduce Aug 4, 2011
build.sbt Port to SBT 0.10.0. Jun 7, 2011



Until this is published to a Maven repository, add the following lines to either ~/.sbt/plugins/project/PluginBuild.scala (user-specific) or project/plugins/project/PluginBuild.scala (project-specific):

import sbt._

object MyPlugins extends Build {
  lazy val root = Project("root", file(".")) dependsOn (junitXmlListener)
  lazy val junitXmlListener = uri("git://")

This will add the dependency to the plugin. The next step is to configure your build to output the XML. The following will output the XML in target/test-reports:

testListeners <<= => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath)))

Note that the line as shown is enough in a *.sbt file. In *.scala files (full configuration), you must collect the result of the expression into the settings of all projects that should produce the XML output.

Something went wrong with that request. Please try again.