Hi,
I have exactly the same problem on latest gradle 2.10 that is described in the old forum concerning Cucumber in combination with the Gradle jUnit reporting.
From the stack trace I clearly see that gradle is trying to create a file with “|” on windows and that is of course failing:
Caused by: org.gradle.api.UncheckedIOException: Could not write to file '<project>\build\reports\tests\packages\| NOT_RELEVANT | EMPTY | NOT_RELEVANT | NOT_RELEVANT
| NOT_RELEVANT | ~ | NOT_RELEVANT | error | java.lang.html'.
at org.gradle.internal.IoActions$TextFileWriterIoAction.execute(IoActions.java:115)
at org.gradle.internal.IoActions$TextFileWriterIoAction.execute(IoActions.java:91)
For now I had to disable the JUnit XML file generation on windows:
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
test.reports.html.enabled = false
}
Best regards