[HTML Report] If any of the child nodes fails, the parent node shows a failure - #1095
[HTML Report] If any of the child nodes fails, the parent node shows a failure #1095javier-sanchez-klarrio wants to merge 2 commits into
Conversation
|
Thanks for the PR! I understand why you'd want this behavior. However, I didn't want to stray too far from what is reported in the original file. A toggle button in the toolbar would be a way forward to have both. WDYT? |
Thank you for creating this project! Do you mean a toggle to switch between the current behaviour and that of this PR? |
|
Maybe to the left and with a separator? |
@marcphilipp, why not? The different formats are for different audiences. And with that in mind, if a toggle is introduced, then it would make sense for it to default to on otherwise it might appear that failed tests are hidden when collapsing a node. |
I'm not fully convinced that's the case but I could live with the toggle being in "aggregated" mode by default. |
This is reproducing the same behaviour typically show in IDEs and other test reports.
Given parent test class A with test methods a,b,c,d. If any of a,b,c,d fail then the status of A is shown as failed.
In case none of the child tests fail but any is skipped/disabled, the overall status of the parent node(s) is still marked as success.
I did not see any tests in the html-report project, here's an example from an extended version of the
sample-project:Please let me know if i should do anything differently!