Hi all!
I'd like to ask if a line limit to ex_unit cli_formatter would be welcomed in core. This sounds like a super silly feature but it is one that I think would raise the quality of the tool because:
1. It is easier to know the number of tests run with a quick glance
2. Most shell/console interfaces are vertical and not horizontal
3. Some shells/consoles have issues with very long lines
I have a proof of concept and was about to open a PR as a draft but reading through the contributing guide in README this step here is necessary. In any case, this is not a difficult thing to code :)
The MAIN reason I am doing this is number 3. I use Emacs and work on a project that has, currently, around 3 thousand tests. There is a long history of Emacs not handling this well because, well... let's just say because Emacs...
So, I thought this is pretty simple:
- count consecutive non-failures
- if it reaches line_limit add a "\n"
- any failures will reset the counter too
Here is how it looks for ex_units test suite:
So, is this a welcome addition? Should I go on and open a PR?
In any case, thanks to the core team for the great work on the platform.
Stay safe, stay home!
Regards