7272 - name : Run Tests
7373 run : |
7474 cd Snowflake.Data.Tests
75- dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build -l console;verbosity= normal" --output windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
75+ dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build --logger junit;LogFilePath=windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_results.junit.xml --verbosity normal" --output windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
7676 env :
7777 snowflake_cloud_env : ${{ matrix.cloud_env }}
7878 net_version : ${{ matrix.dotnet }}
@@ -81,12 +81,16 @@ jobs:
8181 with :
8282 name : code-coverage-report_windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
8383 path : Snowflake.Data.Tests\windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml
84-
8584 - name : Upload Test Performance Report
8685 uses : actions/upload-artifact@v4
8786 with :
8887 name : tests-performance_windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
8988 path : Snowflake.Data.Tests\windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_performance.csv
89+ - name : Upload test results to Codecov
90+ if : ${{!cancelled()}}
91+ uses : codecov/test-results-action@v1
92+ with :
93+ token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
9094 - name : Upload coverage reports to Codecov
9195 uses : codecov/codecov-action@v4
9296 with :
@@ -140,7 +144,7 @@ jobs:
140144 - name : Run Tests
141145 run : |
142146 cd Snowflake.Data.Tests
143- dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build -l console;verbosity= normal" --output linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
147+ dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build --logger junit;LogFilePath=linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_results.junit.xml --verbosity normal" --output linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
144148 env :
145149 snowflake_cloud_env : ${{ matrix.cloud_env }}
146150 net_version : ${{ matrix.dotnet }}
@@ -154,6 +158,11 @@ jobs:
154158 with :
155159 name : tests-performance_linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
156160 path : Snowflake.Data.Tests/linux_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_performance.csv
161+ - name : Upload test results to Codecov
162+ if : ${{!cancelled()}}
163+ uses : codecov/test-results-action@v1
164+ with :
165+ token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
157166 - name : Upload coverage reports to Codecov
158167 uses : codecov/codecov-action@v4
159168 with :
@@ -207,7 +216,7 @@ jobs:
207216 - name : Run Tests
208217 run : |
209218 cd Snowflake.Data.Tests
210- dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build -l console;verbosity= normal" --output macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
219+ dotnet-coverage collect "dotnet test --framework ${{ matrix.dotnet }} --no-build --logger junit;LogFilePath=windows_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_results.junit.xml --verbosity normal" --output macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_coverage.xml --output-format cobertura --settings coverage.config
211220 env :
212221 snowflake_cloud_env : ${{ matrix.cloud_env }}
213222 net_version : ${{ matrix.dotnet }}
@@ -221,6 +230,11 @@ jobs:
221230 with :
222231 name : tests-performance_macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}
223232 path : Snowflake.Data.Tests/macos_${{ matrix.dotnet }}_${{ matrix.cloud_env }}_performance.csv
233+ - name : Upload test results to Codecov
234+ if : ${{!cancelled()}}
235+ uses : codecov/test-results-action@v1
236+ with :
237+ token : ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
224238 - name : Upload coverage reports to Codecov
225239 uses : codecov/codecov-action@v4
226240 with :
0 commit comments