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

failure in beforeAll() and afterAll() not present in junit report #200

Open
lorandg opened this issue May 28, 2020 · 0 comments
Open

failure in beforeAll() and afterAll() not present in junit report #200

lorandg opened this issue May 28, 2020 · 0 comments

Comments

@lorandg
Copy link

lorandg commented May 28, 2020

Hi,
Error thrown in afterAll() and beforeAll() jasmine methods seems not to be written in junit report.
When I run attached test file
test_spec.txt
$ node_modules/.bin/jasmine spec/**/*spec.js
Randomized with seed 00368
Started
mrep:Running suite with 1
mrep:Suite started: my test suite whose full description is: my test suite
mrep:Spec started: Test whose full description is: my test suite Test
test
.mrep:Spec: Test was passed
0
mrep:Suite: my test suite was failed
Suite Error: error
Error: error
at UserContext.afterAll (/vagrant/tests/jasmine/spec/test_spec.js:57:8)
at
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)

Suite error: my test suite
Message:
Error: error
Stack:
Error: error
at UserContext.afterAll (/vagrant/tests/jasmine/spec/test_spec.js:57:8)
at
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)

1 spec, 1 failure
Finished in 0.007 seconds
Randomized with seed 00368 (jasmine --random=true --seed=00368)
mrep:Finished suite: failed

$ cat output/junitresults-mytestsuite.xml

As you can see, my custom report see the error status in suiteDone.
Is-it possible to manage this error status in junit report too ?

Best regards

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