Repository navigation
Replies: 1 comment
|
Hi @nagkumar The important distinction here is that this HTML report is generated by Gradle, not by JUnit Jupiter itself. Therefore a JUnit 5 extension cannot add a new column or custom section to Gradle's built-in HTML report. Gradle does not expose a supported HTML report-template extension API for doing that. You can publish your assertion counts from the JUnit side as structured report entries, for example through Since you already have the assertion-count data, the supported approaches are:
I would avoid using Gradle internal report classes to modify the existing HTML. The old internal test-reporter replacement hook is deprecated and has no supported replacement. So this is primarily a Gradle reporting customization problem rather than a JUnit extension problem. Please mark this answer as accepted if it helped, thank you. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In the above report I want to add total asserts used in that test case.
I was able to count asserts using AOP way and out come is such as
How to push the above console output in HTML report at the right place in HTML view.. there are little or no examples for such dashboard extensions.
All reactions