diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index d647a42..974bc10 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -61,6 +61,7 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} + files: ballerina-tests/jaeger-server-tests/target/report/jaeger_server_tests/coverage-report.xml - name: Notify failure if: ${{ failure() }} run: | diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 660927e..4079a68 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -35,3 +35,5 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} + files: ballerina-tests/jaeger-server-tests/target/report/jaeger_server_tests/coverage-report.xml + diff --git a/ballerina-tests/build.gradle b/ballerina-tests/build.gradle index 2a2ec79..445a79b 100644 --- a/ballerina-tests/build.gradle +++ b/ballerina-tests/build.gradle @@ -50,7 +50,7 @@ def disableGroups = "" def windowsDisableGroups = "--disable-groups disabledOnWindows" def debugParams = "" def balJavaDebugParam = "" -def testParams = "" +def testParams = "--code-coverage --coverage-format=xml" def nativeFlag = "" def packageOrg = "ballerinax" @@ -195,9 +195,9 @@ task ballerinaTest { doLast { testPackages.each { testPackage -> - def env = "JAVA_OPTS -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true ${testParams} ${groupParams}" + + def env = "JAVA_OPTS -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true ${groupParams}" + " ${disableGroups} ${windowsDisableGroups} ${debugParams}" - executeBalCommand("test", "${project.projectDir}/${testPackage}", env) + executeBalCommand("test ${testParams}", "${project.projectDir}/${testPackage}", env) } } } diff --git a/codecov.yml b/codecov.yml index 88a3724..5f2fcac 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,5 +1,5 @@ fixes: - - "ballerinax/jaeger/*/::jaeger-extension-ballerina/" + - "ballerinax/jaeger/*/::ballerina/" ignore: - "**/test"