kaocha icon indicating copy to clipboard operation
kaocha copied to clipboard

Option to silence focus-meta warning

Open NoahTheDuke opened this issue 2 years ago • 2 comments

Would it be possible to have an option to silence this warning?

https://github.com/lambdaisland/kaocha/blob/e20309949256bbfc5b5c90d6d1ebb3bae7b62241/src/kaocha/plugin/filter.clj#L49-L50

I'm setting up kaocha as our company-wide test runner and most of the time folks won't be focusing single tests but it's helpful to have the metadata consistent for everyone, so printing the warning every time feels unnecessary.

I don't know if this is possible, but maybe only include the warning if the option is set from the command line? As I see it, when set in tests.edn it's meant to be constant and can be ignored, but when set from the cli, it's one-off and thus a warning is good to say "you chose this specifically, did you make a mistake?"

NoahTheDuke avatar Jul 01 '22 19:07 NoahTheDuke

We'd like a general approach for opting out of specific warnings. Something where every type of warnings is identified by a keyword, and you can turn them off per type in tests.edn.

A proposal and PR in that vein would be very welcome!

plexus avatar Jul 01 '22 22:07 plexus

#404 creates the infrastructure needed to solve this issue.

alysbrooks avatar Jun 17 '23 01:06 alysbrooks