mfridman/tparse

Add option to not show summary

Itarix opened this issue · 5 comments

Hello,

Thank you to create and maintain this tool!

I think it could be usefull to add an option to hide the summary. Or hide a part of them.

By exemple: show only the summary where the tests are failed.

What do you think?

Thanks !

Do you mean adding a flag like -fail-only and only display the non-passing tests in both the table and package tables?

Yes exactly.

In case having big codebase, it's hard to see the failed tests

Not a bad idea!

Before implementing this, I'd like to modify the behaviour of the Tests Table to include FAIL tests. Currently, they are omitted from the Tests Table and always displayed in the output preceding the Package Table.

Once those are displayed in that table, we can think about adding a -fail-only flag to limit the output to include only failed tests.

I'm curious @Itarix, if there are NO failed tests, what should the output be?

CleanShot 2023-05-28 at 23 25 36@2x

Itarix commented

If no tests failed, the output can be a simple sentence as : No test failed or something like that.

What do you think about that?