Skip to content

Commit c625d13

Browse files
authored
Produce test report for integration tests (#2600)
BATS supports outputing test-reports in various formats (including the format used by our Java/JUnit tests), but our build wasn't taking advantage of this. This commit tweaks our BATS invocation so that a JUnit-style XML test report ('report.xml') is produced in the packaging module's 'build/test-output' directory.
1 parent adc3f7a commit c625d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solr/packaging/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class BatsTask extends Exec {
294294

295295
// Note: tests to run must be listed after all other arguments
296296
// Additional debugging output: -x, --verbose-run
297-
setArgs(['-T', '--print-output-on-failure'] + (testFiles.empty ? testDir : testFiles))
297+
setArgs(['-T', '--print-output-on-failure', '--report-formatter', 'junit', '--output', "$project.buildDir/test-output"] + (testFiles.empty ? testDir : testFiles))
298298

299299

300300
super.exec()

0 commit comments

Comments
 (0)