[defmt-test] Not possible to show location of test functions in stdout logger #820
Labels
difficulty: easy
Pretty easy to solve
type: documentation
Fixes, improvements or additions to the documentation
Problem
With the changes introduced in PR #765 it is not possible to show the location of test functions with the stdout logger.
Only
(<test nr>/<nr of tests>) running <fn name> ...
will be printed.Cause
Since PR #765, prints are not formatted and only the print message is output to stdout.
See commit 431fb80 for the changes that caused this behavior.
According to PR #765, the decision to not format print statements was intentional.
The problem is that defmt-test uses println! to log the start of a test function (see https://github.com/knurling-rs/defmt/blob/main/firmware/defmt-test/macros/src/lib.rs#L410).
This log is not really useful without location information in my opinion.
Expected Solution
Display location information for test functions as shown in the README of defmt-test.
Possible Fix
The easiest fix might be to use the
info
level instead ofprintln
to log the start of a test function.The text was updated successfully, but these errors were encountered: