Open MabezDev opened 8 months ago
Try to remove the defmt
(or log
) feature from the embedded-test
crate.
I'll document the features asap. For now, refer to the Cargo.toml of the crate.
I think I'd rather if embedded-test collected logs into memory and printed them if a test failed. A log feature that interleaves itself into the "UI" output isn't ideal but keeping it enabled may still be useful.
There are two things here:
Running Test...
and Test Exited with...
). They can be disabled by removing the log
/defmt
feature. The log/defmt output from the user will still be printedThe issue opener is a bit vague on what Mabez wants, so yeah I guess I'm hijacking this a bit with output capture, but I feel like we can appropriate this issue for some brainstorming. I'm guessing capture would solve most of the clutter, which is at least party caused by the log strings getting printed into the same line as test ... ok
.
Anyway disregarding that, there's still one more aspect: embedded-test probably shouldn't print defmt location info by default, especially not for embedded-test-specific log strings. I'M not sure about the rest, I'm still not convinced that defmt should print any location info by default, but people seem to like that so ¯\_(ツ)_/¯
.