Skip to content

Commit

Permalink
Give the JUnit test suite a name for the Jenkins JUnit parser (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
vermeeca authored and lefthandedgoat committed Feb 15, 2017
1 parent 3f74a69 commit 6ba9041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canopy/reporters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ type JUnitReporter(resultFilePath:string) =
let testTimeSum = testTimes |> Seq.sumBy snd
let allTestsXml = String.Join(String.Empty, Seq.concat [passedTestsXml; failedTestsXml])
let xml =
sprintf "<testsuite tests=\"%i\" time=\"%.3f\">%s</testsuite>" testCount testTimeSum allTestsXml
sprintf "<testsuite name=\"canopy\" tests=\"%i\" time=\"%.3f\">%s</testsuite>" testCount testTimeSum allTestsXml
let resultFile = System.IO.FileInfo(resultFilePath)
resultFile.Directory.Create()
consoleReporter.write <| sprintf "Saving results to %s" resultFilePath
Expand Down

0 comments on commit 6ba9041

Please sign in to comment.