I have a build.gradle running on CircleCI with the following characteristics:
- It contains the dependency: testCompile ‘junit:junit:4.12’
- It contains normal JUnit test cases.
- Tests run with commands like gradle build or gradle test
- When tests run, JUnit writes their results as XML files in the build/test-results directory. These are files with names like TEST-*.xml
However, CircleCI seems to be unable to parse these files. All it shows is a message like ‘The following errors were encountered parsing test results:’, and, then, a list of all the XML files.
Does anyone know whether it is necessary to generate these test results in a particular format? If so, what would it be?