@wdio/junit-reporter does not add testcase when there is an error or assertion fail in the before function. #6784
Labels
first-timers-only
Issues that are well described and directed for people that start contributing to the project
good first pick
a reasonable task to start getting familiar with the code base
help wanted
Issues that are free to take by anyone interested
wdio-junit-reporter
Config of WebdriverIO
Describe the bug
Selecting junit reporter, the generated file has not a testcase tag when there is an error or an assertion fail
To Reproduce
Copy and past the test below
Execute the test below with
yarn wdio wdio.conf.js -R junit --spec test.example.js
Expected behavior
In the generated file, as you can see, there is no testcase:
The text was updated successfully, but these errors were encountered: