Skip to content

Commit

Permalink
feat: add classname attribute to junit xml report (#229)
Browse files Browse the repository at this point in the history
* feat: add classname attribute to junit xml report

Closes #288

* fix: add missing semi-colon
  • Loading branch information
kenibrewer authored Jul 10, 2024
1 parent b22274f commit c7a0a61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void writeToFile(List<TestSuiteExecutionResult> testSuites) throws Except

for (TestExecutionResult test : testSuite.getTests()) {
writer.writeStartElement("testcase");
writer.writeAttribute("classname", testSuite.getTestSuite().getName());
writer.writeAttribute("name", test.getTest().getName());
writer.writeAttribute("time", Double.toString(test.getExecutionTimeInSecs()));
writer.writeAttribute("status", test.getStatus().toString());
Expand Down

0 comments on commit c7a0a61

Please sign in to comment.