r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

junit output changed to relect jenkins/hudson xsd #90

Closed Ashley-Qa-TestEngineer closed 7 years ago

Ashley-Qa-TestEngineer commented 8 years ago

Hi First of all i'd like to congratulate you on this gem and I hope you continue to develop it further. I have managed to integrate cuke_sniffer within Jenkins/Hudson but not without making changes to the junit output. The original junit builder collated all tests within a 'Testsuites' tag, which is rejected by jenkins. Testsuites should have a Testsuite and a Testsuite should have Testcases. I have changed the output to reflect this requirement. Each test was being produced as a Testsuite so I also collated test failures within the same file to produce a test suite. If a test has no failures then Jenkins/Hudson will read this as a passing result.