[GRADLE-2765] Support disabling of XML test report Created: 06/May/13  Updated: 03/Sep/13  Resolved: 22/May/13

Status: Resolved
Project: Gradle
Affects Version/s: 1.6-rc-1
Fix Version/s: 1.7-rc-1

Type: Improvement
Reporter: Peter Niederwieser Assignee: Unassigned
Resolution: Fixed Votes: 2


 Description   

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



 Comments   
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.

thanks.

Comment by Endre Stølsvik [ 26/Aug/13 ]

Inside the Test-task: reports.junitXml.enabled = false
.. and possibly for good measure: reports.html.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.

  • What went wrong:
    Execution failed for task ':regression:mapi:intTest'.
    > Failed to notify test output listener.
    > Problems writing to file: /Users/petrovic/Projects/xoom/qa/prod/regression/mapi/build/test-results/binary/intTest/Scenario: FX cache clearing for /fx endpoint.stdout.bin

In my test task I have

reports.junitXml.enabled = false
reports.html.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

Generated at Wed Jun 30 12:30:53 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.