Skip to content

Modify reports to conform to junit report schema and filename convention. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 24, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ name := "sbt-simple-junit-xml-reporter-plugin"

organization := "ca.seibelnet"

version := "0.1"
version := "0.2"
6 changes: 3 additions & 3 deletions src/main/scala/ca/seibelnet/TestGroupXmlWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TestGroupXmlWriter(val name: String) {
def write(path: String) {

val resultXml =
<testSuite errors={errors.toString} failures={failures.toString} name={name} tests={tests.toString} time={"0"} timestamp={new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(new Date())}>
<testsuite errors={errors.toString} failures={failures.toString} name={name} tests={tests.toString} time={"0"} timestamp={new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(new Date())}>
<properties/>
{
for (e <- testEvents; t <- e.detail) yield
Expand All @@ -74,9 +74,9 @@ class TestGroupXmlWriter(val name: String) {
}
<system-out></system-out>
<system-err></system-err>
</testSuite>
</testsuite>

XML.save(path+name+".xml",resultXml,xmlDecl = true)
XML.save(path + "TEST-" + name + ".xml",resultXml,xmlDecl = true)

}

Expand Down