Commit 7f57d27
committed
Improve validity of Junit XML reports
The Junit reports generated by scalatest are considered as invalid
when using for instance these xsd:
https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd
https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd
The problem is that we have "<property ... > </property>" instead of
"<property ... />".
This is why the Jenkins XUnit plugin does not accept reports from
scalatest. This issue had already been raised (see issue scalatest#4 ).
Next step would be to fix org.scala.xml.PrettyPrinter which transforms
"<a .../>" to "<a ...>\n </a>" when the line is too long. It is
possible that the option "minimizeEmpty" from
scala/scala-xml#90
will completely fix the issue.1 parent a56c6e2 commit 7f57d27
File tree
2 files changed
+2
-4
lines changed- scalatest/src/main/scala/org/scalatest/tools
2 files changed
+2
-4
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
0 commit comments