mgr/dashboard: export test results in JUnit format
Jenkins support JUnit test output by means of the already installed JUnit plugin. This can help to better understand Jenkins failures (as it allows Jenkins to distinguish between build and testing failures). Additionally, it provides historical charts of number of tests failed, time to complete, improved error messages, it can be integrated with other Jenkins plugins (like Test Result Analyzer), and other features like coverage.JUnit support could be added to the following dashboard tests:
- make check:
ctestmight output XML with
ctest -T Test, but the XML generated is not JUnit compatible. It either needs Jenkins XUnit Plugin instead. This XSL could also be tried to convert CTest XML into JUnit XML.
- Dashboard front-end e2e tests: Cypress supports JUnit
- API tests: while
pytesthave native support for JUnit, we are using
unittest, which does not. However, a third party tool (
unittest-xml-reporting) can do the trick.