Skip to content

Commit

Permalink
feat: add classname attribute to junit xml report
Browse files Browse the repository at this point in the history
Closes #288
  • Loading branch information
kenibrewer authored Jul 10, 2024
1 parent b22274f commit dcf6311
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 dcf6311

Please sign in to comment.