Would it be possible to have an option to silence this warning?
|
(doseq [u unused] |
|
(output/warn "No tests found with metadata key " u ". Ignoring --focus-meta " u ".")) |
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?"
Would it be possible to have an option to silence this warning?
kaocha/src/kaocha/plugin/filter.clj
Lines 49 to 50 in e203099
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.ednit'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?"