Add quiet option when executing tests in order to reduce the output message size
This is a feature request.
I execute test:all frequently, which generates a lot of output, which at least I mostly ignore anyways, as long as the tests pass.
In order to make the output shorter/clearer/simpler, I'd like to suggest to add a --quiet (or similar) option. This option would reduce the output from
👟 Mocking
----------
Generating mock for foo.h...
...
...
...
👟 Preprocessing Test Files
---------------------------
Preprocessing foo.c...
...
...
...
👟 Collecting Test Context
--------------------------
Parsing test case names foo.c...
...
...
...
to
...
👟 Mocking...
👟 Preprocessing Test Files...
👟 Collecting Test Context...
...
This would still show to the user what is going on, but reduce the output drastically. When errors occur, the test can be rerun without the --quiet flag. The overall test summary should be shown as usual at the end.
Hi!
You can adjust the verbosity from the default by specifying -v=2 or --verbosity=warnings.
- 0 -- Silent
- 1 -- Errors
- 2 -- Warnings
- 3 -- Normal (Info)
- 4 -- Obnoxious
- 5 -- Debug
I think that'll do what you want?
Hello Mark, thanks for your quick reply! Awesome, this will do. I probably used bad search words. Best Regards!
Hi Mark, I want to add this: using --verbosity=errors (or -v=1), I still get warnings: WARNING: No function prototypes found by CMock.
This does not seem correct (however it is not an issue for me, I fixed the warnings).