embunit / unittests: several improvements#16145
embunit / unittests: several improvements#16145miri64 wants to merge 9 commits intoRIOT-OS:masterfrom
Conversation
For the curious ones: it were the tests in #16156 ;-) |
|
Murdock does not like it. |
Let's give it another run. Looks more like a murdock error than a build error. |
This still needs to be run manually though ;-) |
|
See #16803 for why I removed the |
This allows for use of OUTPUT=XML in all tests using embunit, not just `tests/unittests`. The other output formats work without the outputter being explicitly set.
|
Murdock still does not like it. |
|
Might be the same problem. Will look into it later! |
Done. Was indeed a wrong |
|
(but can reproduce locally) |
|
Arghs, used the wrong function in that test. Is now fixed. |
99713f2 to
e682a64
Compare
|
Of course, it was only a matter of time that the somewhat generally named |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
Still WIP? |
Nothing happened (except for Stale-Bot actions) since I set that label, so yes ;-). |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
Maybe @Teufelchen1 would like to take a look at this? |
Ping @Teufelchen1 (or maybe @mguetschow)? |
Contribution description
While implementing some
embUnittests, I noticed several issues:OUTPUT=XMLis only supported bytests/unittests,run_check_unittests()is not used by all tests that useembUnit,run_check_unittests()is not able to recognize output formats other than the default one anOUTPUT=TEXT.This PR aims to improve things on all of these fronts. The only output format I did not address was
OUTPUT=COMPILER(which only prints when a test fails and only the failed assertions). For that, I think it would make most sense to reverse the logic ofrun_check_unittests(): expect on errors, and use TIMEOUT as the success condition. But that might not desirable for other tests. So I ignored that output format for now.Testing procedure
The tests changed should still run and succeed, using
OUTPUT=XMLprovides an XML output.Issues/PRs references
None