]> source.dussan.org Git - poi.git/commitdiff
Enable XML result files for Gradle build to make them available for Jenkins CI
authorDominik Stadler <centic@apache.org>
Sun, 3 Jan 2021 17:02:24 +0000 (17:02 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 3 Jan 2021 17:02:24 +0000 (17:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885071 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index a42b0a8f212a4a6d98feed91e988c6d04aa35c36..0014bd51eaf82545baa3cd78b52987c92d021202 100644 (file)
@@ -142,6 +142,12 @@ subprojects {
     }
 
     test {
+        // make XML test-results available for Jenkins CI
+        useJUnitPlatform()
+        reports {
+            junitXml.enabled = true
+        }
+
         // Exclude some tests that are not actually tests or do not run cleanly on purpose
         exclude '**/BaseTestBorderStyle.class'
         exclude '**/BaseTestCellUtil.class'
@@ -372,6 +378,7 @@ project('excelant') {
 
         testCompile project(path: ':main', configuration: 'tests')
         testCompile "org.junit.jupiter:junit-jupiter:${junitVersion}"
+        testCompile 'org.hamcrest:hamcrest:2.2'
     }
 
     jar {