You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Printing up to ten of failed test cases at the end of test report would be useful!
We have a lot of tests and when I get the final summary (n failed tests) I still need to find out which of them failed. Often searching terminal history for [FAILED] doesn't work as the history isn't long enough. Then I need to re-run with ... | tee failed.txt and that slows everything down.
This indeed reminds us of a problem that I imagine every developer trying to figure out failed library tests has encountered - especially on the CI the log of tests that are run is HUGE and it is hard to browse it.
Locally we have the REPORT_ONLY_FAILED env var that allows to only print failures. I don't think it's viable to enable that flag on the CI by default because we do want to also see which tests are run.
As part of this task, one should design what is the best way to summarize the failed tests and implement it.
It may be the 'display up to 10 failed test cases at the end' as suggested, but it may be something else - the goal is to make it easy to find test failures when running a huge test suite.
The text was updated successfully, but these errors were encountered:
reorder test summary so that failed groups are at the end
i. cons:
with such reordering, one cannot display progress of tests being run but instead has to wait until all test suites finish which may take a long time; usually it is nice to see the progress of the test run
although that can be alleviated by adding a kind of progress bar, at least when running in terminal
big groups with just 1 test failure that appear at the end may still not be ideal
display a short summary of failed tests, skipping the details (stack traces) and just listing the failures within each failed group (e.g. essentially repeat the output as would appear under REPORT_ONLY_FAILED, and possibly truncated to at most 10 cases as suggested.
As suggested in a comment by @JaroslavTulach:
This indeed reminds us of a problem that I imagine every developer trying to figure out failed library tests has encountered - especially on the CI the log of tests that are run is HUGE and it is hard to browse it.
Locally we have the
REPORT_ONLY_FAILED
env var that allows to only print failures. I don't think it's viable to enable that flag on the CI by default because we do want to also see which tests are run.As part of this task, one should design what is the best way to summarize the failed tests and implement it.
It may be the 'display up to 10 failed test cases at the end' as suggested, but it may be something else - the goal is to make it easy to find test failures when running a huge test suite.
The text was updated successfully, but these errors were encountered: