-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
wdio-junit-reporter: include before and after all failures #3993
wdio-junit-reporter: include before and after all failures #3993
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3993 +/- ##
==========================================
+ Coverage 99.04% 99.04% +<.01%
==========================================
Files 157 157
Lines 3462 3466 +4
Branches 766 767 +1
==========================================
+ Hits 3429 3433 +4
Misses 28 28
Partials 5 5
Continue to review full report at Codecov.
|
Hi folks. I had been having this exact problem and just updated to @wdio/junit-reporter": "^5.9.3" For me this doesn't appear to have resolved the issue. I still end up with an empty report Example test
Dependancies
Just wondering if anyone else still has the issue?
|
@helloitsdave move before block inside describe |
Thanks @mgrybyk I've tried that and as a workaround it does create the junit file as expected. The downside is that it makes the tests slightly less readable when there are multiple describes in a test as whole thing needs to be wrapped in a parent describe, in order to have a before outside of the individual tests. For example, if my login fails in the before I don't want any of the other describes executed. Before on wdio v 4
Now on wdio v5
|
Proposed changes
Capture before all and after all failures as test failures in junit-reporter.
Fix #3517
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/technical-committee