Skip to content
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

Fix empty xunit file on error. #118

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mjonss
Copy link
Collaborator

@mjonss mjonss commented Dec 6, 2023

Close: #116

Issue was that os.Exit(1) was used on error, which bypasses all defer function.

Fix consistently use the already existing global testSuite and write the xunit file explicitly in the end of the main function, before possible os.Exit() calls.

Issue was that os.Exit(1) was used on error, which bypasses all
defer function.

Fix consistently use the already existing global testSuite and write
the xunit file explicitly in the end of the main function, before
possible os.Exit() calls.
@CLAassistant
Copy link

CLAassistant commented Feb 18, 2024

CLA assistant check
All committers have signed the CLA.

@wuhuizuo
Copy link
Collaborator

@mjonss Could we merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty tests for failed suites in junit xml report file.
4 participants