extentreports-java
extentreports-java copied to clipboard
Re-Add Pass Rate as a default report display metric
Expected Behavior
Display somewhere in the reports by default overall pass rate!!!! Passed tests out of total tests represented as a percentage.
Current Behavior
I have been using extent reports for nearly 2 year now (through version 2 and now on 3).
Out of the plethora of changes made, this is one that has driven me crazy:
The Removal of pass percentage rate from extent 2 to 3.
Note how the above only shows the pass and fail when hovered (Extent 3). Never the percentage. Infact on every page of the reports there is seemingly no reference to overall pass rate. The most core metric in our case was pass rate, now I need to estimate it, or go through an annoying calculation if I want to deliver that same metric. I get that extent 3 went for a more minimalist design... But pass rate should be displayed by default for everyone. I can't think of one bonafide reason why you wouldn't want it by default.
Environment Details
- Extent report Version used: 3.1.3
- Operating System and version: Windows Server 2016
- JDK Version: 8u161
Why not send a pull request with this change and help towards development?
What is interesting is a co-worker has just discovered a way to get the percentage. If you hover over the test pass/fail on the left hand side of the reports it will show.
I am however going to leave this issue open, as after using extent and viewing it numerous times a day since extent 3, I did not know the pass rate percentage could be obtained via this method.
Perhaps adding the pass rate on hover to the wheel above, or just providing the flat metric would help.
This section was removed because of lacking real estate after the introduction of BDD format (which require 3 graphs). I can add this metric in the dashboard view though if that helps.
Optimally I think it should be on the first page, I really do believe it to be one of the most important metrics that should be immediately obtainable. Selfishly I now know how to get it with a quick hover, so I'm not as concerned as I was initially.
I will say that you would expect it to visible and very prevalent on the page. Perhaps drop the precision down to 2 decimal places, and put it in the middle of the pie wheel. Potentially have it just as text in the pass fail text on the left:
151 test(s) passed 27 test(s) failed, 0 others (86.24%)
Another thing that would help if you didn't want to change a lot of code on your end is some kind of visual cue that you can hover for pass rate.
I like the idea of adding it inside the pie wheel.
How does this look?
A bit odd to be honest. It seems like something that does belong in Tests section, as it is a metric associated with the aggregate tests. It is a very important metric, but seems out of place next to date/time and version.
There is a bunch of metrics on the success/failure/etc with the pie wheel, and stats of tests. It really feels appropriate to incorporate it there if you are asking me personally.
I will say that anywhere is better than no where (or difficult to get to)
The version of charts the community version uses makes it very difficult to add elements inside the wheel (which is just a canvas). The above was a quick impl but not very elegant. Will do some research and update soon.