Skip to content

Commit 69adfc8

Browse files
Update github-actions-ci.yaml
1 parent 90d3555 commit 69adfc8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/github-actions-ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,22 @@ jobs:
5252
shell: bash
5353

5454
- name: Run tests
55-
run: dotnet test PosInformatique.Testing.Databases.sln --configuration Release --no-build --logger "junit;LogFilePath=./TestResults/junit.xml"
55+
run: dotnet test PosInformatique.Testing.Databases.sln --configuration Release --no-build --logger "trx;LogFileName=test_results.trx" --results-directory ./TestResults
5656
env:
5757
SQL_SERVER_UNIT_TESTS_CONNECTION_STRING: "Data Source=localhost,1433;Database=master;User Id=sa;Password=P@ssw0rd12345!;TrustServerCertificate=True;"
5858
SQL_SERVER_UNIT_TESTS_OTHER_DATA_PATH: "/tmp/other_databases_path"
5959

60+
- name: Convert TRX to JUnit
61+
uses: NasAmin/trx2junit@v3.0.0
62+
with:
63+
input: ./TestResults
64+
6065
- name: Publish tests report
6166
uses: dorny/test-reporter@v1
6267
if: always()
6368
with:
6469
name: PosInformatique.Testing.Databases
65-
path: ./TestResults/junit.xml
70+
path: ./TestResults/*.xml
6671
reporter: jest-junit
6772

6873
build-samples:

0 commit comments

Comments
 (0)