-
Improvement
-
Resolution: Won't Do
-
Major
-
None
It would be nice to be able to categorize tests by providing an optional "category" parameter to the xunit publisher.
The specific use case I had in mind was to provide some ability to group test results based on stages in a Jenkins pipeline build. If the xunit test publisher accepted a "category" parameter, one could provide some unique name - like the name of the current build stage - as the category, allowing all the tests reported by that publisher to be grouped together and kept separate from the results produced by other stages.
In general, I think this feature would be handy for legacy and single-stage test suites as well. Suppose several teams are writing tests for a project and you want to group the tests from team 1 together, team 2, etc. You could then have spearate publish operations for the different xUnit report files, each with a custom "team" based category, so their results can be grouped together.
As for the visual representation, I was thinking that maybe a small row of tabs above or below the test report table would work, with one tab labelled "all" and each of the others labelled with the associated category name. In this way, if you wanted to see information on a specific group of tests you could just select the appropriate tab / category.
- depends on
-
JENKINS-45826 XUnit support for distinguishing test reports from different steps
- Resolved