How to add additional attributes (DisplayName and Tag) to JUnit 5 test result XML file?

90
June 19, 2019, at 08:40 AM

I am running unit tests using the JUnit 5 framework using gradle. The test result XML file that it generates produces

<testcase name="test_abc" classname="some.class.name" time="0.123">

However, what I am looking for is

<testcase name="test_abc" classname="some.class.name" time="0.123" my-own-attribute="somevalue"/>

Specifically, I would like the attribute that I want to add be the @DisplayName and @Tag annotations from my test cases. Is there any way to achieve this in the JUnit 5 testing framework? Else what other framework that would work with Kotlin would be able to generate such an XML test result report? Any help is much appreciated.

READ ALSO
Need help fetch friends from vkontakte

Need help fetch friends from vkontakte

I have written oauth2 social client but could not fetch authorized user's friends list Please have a look at my code to see what's missing/ regards

76
How to detect if an app is launching with services and intercept it [on hold]

How to detect if an app is launching with services and intercept it [on hold]

I am currently developing an app lock and I find it difficult to detect if a certain app is launchingHow should I detect the app that is launching with their package name and intercept it?

76