Skip to content

Commit 0d0430e

Browse files
Fix CI
1 parent bb11333 commit 0d0430e

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ jobs:
5656
docker exec --user root $(docker ps -qf "ancestor=mcr.microsoft.com/mssql/server:2022-latest") chown -R mssql:mssql /tmp/other_databases_path
5757
5858
- name: Run tests
59-
run: dotnet test PosInformatique.Testing.Databases.sln --configuration Release --no-build --logger "trx;LogFileName=test_results.trx" --results-directory ./TestResults
59+
run: dotnet test PosInformatique.Testing.Databases.sln \
60+
--configuration Release \
61+
--no-build \
62+
-- \
63+
--logger "trx;LogFileName=test_results.trx" \
64+
--results-directory ./TestResults
6065
env:
6166
SQL_SERVER_UNIT_TESTS_CONNECTION_STRING: "Data Source=localhost,1433;Database=master;User Id=sa;Password=P@ssw0rd12345!;TrustServerCertificate=True;"
6267
SQL_SERVER_UNIT_TESTS_OTHER_DATA_PATH: "/tmp/other_databases_path/"

PosInformatique.Testing.Databases.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
CodeCoverage.runsettings = CodeCoverage.runsettings
1111
Directory.Build.props = Directory.Build.props
1212
Directory.Packages.props = Directory.Packages.props
13+
dotnet.config = dotnet.config
1314
LICENSE = LICENSE
1415
README.md = README.md
1516
stylecop.json = stylecop.json

dotnet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[dotnet.test.runner]
2+
name = "Microsoft.Testing.Platform"

tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- Add the support Microsoft Test Platform -->
1717
<PropertyGroup>
1818
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
19-
<TestingPlatformDotnetTestSupport>false</TestingPlatformDotnetTestSupport>
19+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
2020
</PropertyGroup>
2121

2222
<!-- Add the default using directive for all tests code -->

0 commit comments

Comments
 (0)