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

test.err & test.stack is undefined #7

Open
marianlorinc opened this issue Oct 28, 2021 · 0 comments
Open

test.err & test.stack is undefined #7

marianlorinc opened this issue Oct 28, 2021 · 0 comments

Comments

@marianlorinc
Copy link

In case of combination with multi reporters there is a bug.
To sonaqube xml report is not tracked message and stack because they are undefined.

In runner.on('test end') you should handle undefined values for test.stack and test.message:

var mtest = {
           title: test.title,
           titleId: title + ': ' + test.title,
           suite: title,
           stack: test.stack || (test.err && test.err.stack),
           message: test.message || (test.err && `test.err.message),`
           file: file,
           duration: test.duration,
           state: test.state != undefined ? test.state : 'skipped'
       };
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

No branches or pull requests

1 participant