I'm testing out the junit reporter with Cypress, and there are some weird behaviors with regards to the root suite, especially when using nested suites.
The root suite seems to be empty, and ends up being named ` (empty string) even if I have setrootSuiteName. This seems to be becausefullSuiteTitle()assumes the passed-in suite is not the root itself:var title = [ suite.title ];`
If I set useFullSuiteTitle to true, there's no way to omit the root name, because the || operator overrides the empty string:
I'm testing out the junit reporter with Cypress, and there are some weird behaviors with regards to the root suite, especially when using nested suites.
The root suite seems to be empty, and ends up being named
` (empty string) even if I have set
rootSuiteName. This seems to be because
fullSuiteTitle()assumes the passed-in suite is not the root itself:
var title = [ suite.title ];`If I set
useFullSuiteTitle
totrue
, there's no way to omit the root name, because the||
operator overrides the empty string:Given this sample test:
Assuming the config:
What I expect (though the last piece of the classname is redundant):
What I get:
Full spew, with
"useFullSuiteTitle": true
:Full spew, with
"useFullSuiteTitle": false
: