-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embunit / unittests: several improvements #16145
base: master
Are you sure you want to change the base?
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.
583e5e3
to
d4c624e
Compare
The |
(to fix the error in master I had to rebase this PR) |
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? |
Contribution description
While implementing some
embUnit
tests, I noticed several issues:OUTPUT=XML
is 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=XML
provides an XML output.Issues/PRs references
None