Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

Add quiet option when executing tests in order to reduce the output message size

Open ErdlingProductions opened this issue 5 months ago • 3 comments

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.

ErdlingProductions avatar Jul 18 '25 10:07 ErdlingProductions

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?

mvandervoord avatar Jul 21 '25 18:07 mvandervoord

Hello Mark, thanks for your quick reply! Awesome, this will do. I probably used bad search words. Best Regards!

ErdlingProductions avatar Jul 22 '25 06:07 ErdlingProductions

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).

ErdlingProductions avatar Jul 22 '25 11:07 ErdlingProductions