[GRADLE-2765] Support disabling of XML test report Created: 06/May/13 Updated: 03/Sep/13 Resolved: 22/May/13
Some custom JUnit runners have their own reporting, and Gradle's XML/HTML reports aren't required. It's already possible to disable the HTML report, but it should also be possible to disable the XML report. This might also allow to work around issues with Cucumber, JBehave, and similar tools that report "deeper" test hierarchies to JUnit which our reporting can't handle. See: http://forums.gradle.org/gradle/topics/npe_in_simplemarkupwriter_when_generating_report_for_thucydides_jbehave_junit_tests
|Comment by mark petrovic [ 08/May/13 ]|
If we had a way of disabling XML reports, I could migrate from gradle 1.3 to gradle latest. My cucumber-jvm tests won't run with anything more recent than gradle 1.3.
|Comment by Endre Stølsvik [ 26/Aug/13 ]|
Inside the Test-task: reports.junitXml.enabled = false
|Comment by mark petrovic [ 30/Aug/13 ]|
Thanks for this bug fix.
Now I'm blocked on http://issues.gradle.org/browse/GRADLE-2739 because my Cucumber scenario descriptions have "/" in them.
FAILURE: Build failed with an exception.
In my test task I have
reports.junitXml.enabled = false
I'm not sure this build failure should or should not have been reached given the disabling of the reports. When reports are disabled, should Gradle be attempting to write any reports anywhere?
|Comment by mark petrovic [ 03/Sep/13 ]|
I submitted a pull request to help fix escaping literal "/" in Cucumber Scenario and step def "test names": https://github.com/gradle/gradle/pull/190