Add HTML to JUnit Reports

I use Jenkins to perform some regression tests of our software. To better convey information from JUnit, we would like to add some html tags (links and / or iframes, including custom html reports). I thought about opening a junit xml report and messing around with the results, changing the error labels to some custom html. The problem I am facing is that the html is escaped, so the original html is displayed on the test report page. Is there a way to show some html in a particular failed test, for example a link to a failed test? Or add HTML to the message directly? By the way, right now we are manually comparing files, highlighting the changed lines between two output files, is there any way to do this, for example, through a plugin? Please, not that the server is running under windows. Thanks!

+4
source share
1 answer

Well, it seems that the links in the error messages are automatically parsed by Jenkins. Not the best solution, but it may work ...

0
source

Source: https://habr.com/ru/post/1502633/


All Articles