Could not write XML test results


(Gregory Gee) #1

I am having a problem getting gradle to successfully run a cucumber task. When I run the tests, all the tests pass but the task will fail saying ‘Could not write XML test results for…’. It looks like it is failing to create the file because the file name is too long. It seems to be taking the values from the Examples table in the feature file and concatenating them into a file name. Is there a way to shorten or explicitly set the names?

(Benjamin Muschko) #2

I am assuming you are using the Gradle Cucumber plugin? Did you raise an issue with them? Maybe they could address this better in the plugin logic.

BTW: Path length is a limitation of Windows and an issue that comes up every so often.