Skip to content

CaringDev/junit_xml_listener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Installation

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("http://github.com/rasch/junit_xml_listener.git#7658ee513e9767f6056adf7d245ec2948b84c33c")
}

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 <<= target.map(t => 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.

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%