Closed KlotzAndrew closed 4 years ago
In junit, test suites are java namespaces, and will be combined with dots when presented. This is directly at odds with rspec example group and example naming, which encourages natural language syntax, joined with spaces and forming simple sentences or statements. The compromise was to output a single test suite, with test cases descriptions based on the rspec example group and example descriptions, but with namespaced class names based on the path to the containing example file. Most tools will fold the class names into a navigable tree structure, and I'd encourage you to do so if that's what you're after. 🙏
all tests look like they in a single testsuite, where I would expect describe blocks to group multiple testsuite blocks under a testsuites block
example with 2 describe blocks:
console output is grouped by describe block:
but the xml groups all tests in a single testsuite block: