diff --git a/.github/workflows/scala-new.yml b/.github/workflows/scala-new.yml index 80c40708005..6aa364c8ae1 100644 --- a/.github/workflows/scala-new.yml +++ b/.github/workflows/scala-new.yml @@ -80,7 +80,15 @@ jobs: if: success() || failure() with: name: Enso Standard Library Tests (linux) - path: ${{ env.ENSO_TEST_JUNIT_DIR }}/**/*.xml + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*/*.xml + path-replace-backslashes: "true" + reporter: java-junit + - name: Engine test report + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Engine Tests (linux) + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*.xml path-replace-backslashes: "true" reporter: java-junit enso-build-cli-ci-gen-job-ci-check-backend-macos: @@ -146,7 +154,15 @@ jobs: if: success() || failure() with: name: Enso Standard Library Tests (macos) - path: ${{ env.ENSO_TEST_JUNIT_DIR }}/**/*.xml + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*/*.xml + path-replace-backslashes: "true" + reporter: java-junit + - name: Engine test report + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Engine Tests (macos) + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*.xml path-replace-backslashes: "true" reporter: java-junit enso-build-cli-ci-gen-job-ci-check-backend-windows: @@ -214,7 +230,15 @@ jobs: if: success() || failure() with: name: Enso Standard Library Tests (windows) - path: ${{ env.ENSO_TEST_JUNIT_DIR }}/**/*.xml + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*/*.xml + path-replace-backslashes: "true" + reporter: java-junit + - name: Engine test report + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Engine Tests (windows) + path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*.xml path-replace-backslashes: "true" reporter: java-junit env: diff --git a/build.sbt b/build.sbt index f51e211063c..742d952233b 100644 --- a/build.sbt +++ b/build.sbt @@ -210,9 +210,13 @@ ThisBuild / scalacOptions ++= Seq( "-Ywarn-unused:privates" // Warn if a private member is unused. ) -ThisBuild / Test / testOptions += Tests.Argument( - "-oI" -) +ThisBuild / Test / testOptions ++= + Seq(Tests.Argument("-oI")) ++ + sys.env + .get("ENSO_TEST_JUNIT_DIR") + .map { junitDir => + Tests.Argument(TestFrameworks.ScalaTest, "-u", junitDir) + } val jsSettings = Seq( scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) }