From d0ad2a6174359bf0e6f7a07ce75243e731f086e2 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 11:08:19 +0100 Subject: [PATCH 1/8] nuget updates --- Directory.Packages.props | 52 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 8ff98f4f..15c0d60b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,25 +9,25 @@ - + - - + + - - + + - + @@ -39,19 +39,19 @@ - + - + - - - - + + + + @@ -60,15 +60,15 @@ - - - - - - - - - + + + + + + + + + @@ -84,10 +84,10 @@ - - - - + + + + @@ -102,4 +102,4 @@ - + \ No newline at end of file From eeb5454da17b10020ac835c2e38e0e826b4dfea2 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 11:34:53 +0100 Subject: [PATCH 2/8] Update test reporting options in pull request workflow --- .github/workflows/pullrequest.yml | 12 ++++++------ global.json | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 0b5b037e..b3d08720 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -35,11 +35,11 @@ jobs: - name: Run Unit Tests run: | echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=buslogic-test-results.trx" - dotnet test "TransactionProcessor.ProjectionEngine.Tests\TransactionProcessor.ProjectionEngine.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=projection-test-results.trx" - dotnet test "TransactionProcessor.Aggregates.Tests\TransactionProcessor.Aggregates.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=aggregates-test-results.trx" - dotnet test "TransactionProcessor.Tests\TransactionProcessor.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=tests-test-results.trx" - dotnet test "TransactionProcessor.DatabaseTests\TransactionProcessor.DatabaseTests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=database-test-results.trx" + dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "buslogic-test-results.trx" + dotnet test "TransactionProcessor.ProjectionEngine.Tests\TransactionProcessor.ProjectionEngine.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "projection-test-results.trx" + dotnet test "TransactionProcessor.Aggregates.Tests\TransactionProcessor.Aggregates.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "aggregates-test-results.trx" + dotnet test "TransactionProcessor.Tests\TransactionProcessor.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "tests-test-results.trx" + dotnet test "TransactionProcessor.DatabaseTests\TransactionProcessor.DatabaseTests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "database-test-results.trx" - name: Build Docker Image run: docker build . --file TransactionProcessor/Dockerfile --tag transactionprocessor:latest @@ -59,7 +59,7 @@ jobs: FLUENTDOCKER_DOCKER_USE_SUDO: "false" FLUENTDOCKER_DOCKER_PATH: "/usr/bin/docker" run: | - dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=integration-test-results.trx" + dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 if: always() diff --git a/global.json b/global.json new file mode 100644 index 00000000..3140116d --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +} From 000774dc5079f1026300d6ee3a498875da275225 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 11:49:41 +0100 Subject: [PATCH 3/8] Enable TRX reporting for integration test workflows --- .github/workflows/nightlybuild.yml | 2 +- .github/workflows/pullrequest.yml | 2 +- Directory.Packages.props | 3 ++- .../TransactionProcessor.IntegrationTests.csproj | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index bd2980d0..ea8e70e5 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -52,7 +52,7 @@ jobs: run: docker build . --file TransactionProcessor/Dockerfile --tag transactionprocessor:latest - name: Run Integration Tests - run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" + run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --report-trx --report-trx-filename "integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 if: always() diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b3d08720..b5b32a74 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -59,7 +59,7 @@ jobs: FLUENTDOCKER_DOCKER_USE_SUDO: "false" FLUENTDOCKER_DOCKER_PATH: "/usr/bin/docker" run: | - dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "integration-test-results.trx" + dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --report-trx --report-trx-filename "integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 if: always() diff --git a/Directory.Packages.props b/Directory.Packages.props index 15c0d60b..33b27ab5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -37,6 +37,7 @@ + @@ -102,4 +103,4 @@ - \ No newline at end of file + diff --git a/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj b/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj index ec786756..07459eab 100644 --- a/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj +++ b/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj @@ -4,6 +4,8 @@ net10.0 Full false + true + Exe @@ -27,6 +29,7 @@ + all runtime; build; native; contentfiles; analyzers; buildtransitive From cf261caef2c86c275b333b1c20f33823553d34ed Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 13:05:36 +0100 Subject: [PATCH 4/8] Configure CI workflows to use .NET SDK 10.0.400 --- .github/workflows/nightlybuild.yml | 5 +++++ .github/workflows/pullrequest.yml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index ea8e70e5..b86fdf34 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -30,6 +30,11 @@ jobs: rmz_version: "3.1.1" # Required when rm_cmd is 'rmz' testing: false + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.400 + - name: Set Up Variables run: echo "action_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b5b32a74..615d1402 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - + - name: Free Disk Space uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable with: @@ -25,6 +25,11 @@ jobs: rmz_version: "3.1.1" # Required when rm_cmd is 'rmz' testing: false + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.400 + - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} From fb2af30a5540b4af57c059d6e319af05028b72ad Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 13:14:47 +0100 Subject: [PATCH 5/8] Enable Microsoft Testing Platform runner for tests --- .../TransactionProcessor.Aggregates.Tests.csproj | 2 ++ .../TransactionProcessor.BusinessLogic.Tests.csproj | 2 ++ .../TransactionProcessor.DatabaseTests.csproj | 2 ++ .../TransactionProcessor.ProjectionEngine.Tests.csproj | 2 ++ TransactionProcessor.Tests/TransactionProcessor.Tests.csproj | 2 ++ 5 files changed, 10 insertions(+) diff --git a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj index 6064853a..0e91e072 100644 --- a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj +++ b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj @@ -7,6 +7,8 @@ None false true + Exe + true diff --git a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj index bf0ff847..f79ffa28 100644 --- a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj +++ b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj @@ -4,6 +4,8 @@ net10.0 None false + Exe + true diff --git a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj index b1244687..a97186fd 100644 --- a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj +++ b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj @@ -6,6 +6,8 @@ enable false Full + Exe + true diff --git a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj index c7f49785..4c9a6023 100644 --- a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj +++ b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj @@ -6,6 +6,8 @@ enable None false + Exe + true diff --git a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj index 8240e1a4..5d38adcf 100644 --- a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj +++ b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj @@ -4,6 +4,8 @@ net10.0 None false + Exe + true From 1cc0623482f3785aab32d81786812ac25f81b0eb Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 13:23:14 +0100 Subject: [PATCH 6/8] Enable dotnet test support for test projects --- .../TransactionProcessor.Aggregates.Tests.csproj | 1 + .../TransactionProcessor.BusinessLogic.Tests.csproj | 1 + .../TransactionProcessor.DatabaseTests.csproj | 1 + .../TransactionProcessor.IntegrationTests.csproj | 1 + .../TransactionProcessor.ProjectionEngine.Tests.csproj | 1 + TransactionProcessor.Tests/TransactionProcessor.Tests.csproj | 1 + 6 files changed, 6 insertions(+) diff --git a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj index 0e91e072..c967825a 100644 --- a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj +++ b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj @@ -9,6 +9,7 @@ true Exe true + true diff --git a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj index f79ffa28..6d23e487 100644 --- a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj +++ b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj @@ -6,6 +6,7 @@ false Exe true + true diff --git a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj index a97186fd..f5ae0e7c 100644 --- a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj +++ b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj @@ -8,6 +8,7 @@ Full Exe true + true diff --git a/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj b/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj index 07459eab..f4368093 100644 --- a/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj +++ b/TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj @@ -6,6 +6,7 @@ false true Exe + true diff --git a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj index 4c9a6023..13d0d633 100644 --- a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj +++ b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj @@ -8,6 +8,7 @@ false Exe true + true diff --git a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj index 5d38adcf..4fdbc963 100644 --- a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj +++ b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj @@ -6,6 +6,7 @@ false Exe true + true From 89110594e2542125133bf9edba1cc9dee549c98c Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 13:36:46 +0100 Subject: [PATCH 7/8] Use xUnit MTP v2 packages for tests --- Directory.Packages.props | 1 + .../TransactionProcessor.Aggregates.Tests.csproj | 7 +------ .../TransactionProcessor.BusinessLogic.Tests.csproj | 7 +------ .../TransactionProcessor.DatabaseTests.csproj | 7 +------ .../TransactionProcessor.ProjectionEngine.Tests.csproj | 8 +------- .../TransactionProcessor.Tests.csproj | 7 +------ 6 files changed, 6 insertions(+), 31 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 33b27ab5..e7e206e8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -87,6 +87,7 @@ + diff --git a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj index c967825a..79809eb5 100644 --- a/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj +++ b/TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj @@ -17,7 +17,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - @@ -26,11 +25,7 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj index 6d23e487..3ca16d44 100644 --- a/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj +++ b/TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj @@ -13,7 +13,6 @@ - @@ -27,11 +26,7 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj index f5ae0e7c..d86f1a82 100644 --- a/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj +++ b/TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj @@ -18,17 +18,12 @@ - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj index 13d0d633..9ee770e7 100644 --- a/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj +++ b/TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj @@ -13,19 +13,13 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj index 4fdbc963..21eb35b2 100644 --- a/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj +++ b/TransactionProcessor.Tests/TransactionProcessor.Tests.csproj @@ -15,7 +15,6 @@ - @@ -28,11 +27,7 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 1755ce457a8b21e44402d90f229be7a146812bb9 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 31 Aug 2026 13:55:11 +0100 Subject: [PATCH 8/8] Fix CI test execution on Linux --- .github/workflows/nightlybuild.yml | 12 ++++++------ .github/workflows/pullrequest.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index b86fdf34..89ca3685 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -47,17 +47,17 @@ jobs: - name: Run Unit Tests run: | echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - dotnet test "TransactionProcessor.ProjectionEngine.Tests\TransactionProcessor.ProjectionEngine.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov2.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - dotnet test "TransactionProcessor.Aggregates.Tests\TransactionProcessor.Aggregates.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov3.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - dotnet test "TransactionProcessor.Tests\TransactionProcessor.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov4.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - dotnet test "TransactionProcessor.DatabaseTests\TransactionProcessor.DatabaseTests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov5.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" + dotnet test "TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj" --no-restore /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" + dotnet test "TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj" --no-restore /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov2.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" + dotnet test "TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj" --no-restore /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov3.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" + dotnet test "TransactionProcessor.Tests/TransactionProcessor.Tests.csproj" --no-restore /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov4.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" + dotnet test "TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj" --no-restore /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov5.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - name: Build Docker Image run: docker build . --file TransactionProcessor/Dockerfile --tag transactionprocessor:latest - name: Run Integration Tests - run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --report-trx --report-trx-filename "integration-test-results.trx" + run: dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --no-restore --report-trx --report-trx-filename "integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 if: always() diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 615d1402..6b717138 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -40,11 +40,11 @@ jobs: - name: Run Unit Tests run: | echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "buslogic-test-results.trx" - dotnet test "TransactionProcessor.ProjectionEngine.Tests\TransactionProcessor.ProjectionEngine.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "projection-test-results.trx" - dotnet test "TransactionProcessor.Aggregates.Tests\TransactionProcessor.Aggregates.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "aggregates-test-results.trx" - dotnet test "TransactionProcessor.Tests\TransactionProcessor.Tests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "tests-test-results.trx" - dotnet test "TransactionProcessor.DatabaseTests\TransactionProcessor.DatabaseTests.csproj" --configuration Release --no-build --verbosity normal --report-xunit-trx --report-xunit-trx-filename "database-test-results.trx" + dotnet test "TransactionProcessor.BusinessLogic.Tests/TransactionProcessor.BusinessLogic.Tests.csproj" --configuration Release --no-restore --verbosity normal --report-xunit-trx --report-xunit-trx-filename "buslogic-test-results.trx" + dotnet test "TransactionProcessor.ProjectionEngine.Tests/TransactionProcessor.ProjectionEngine.Tests.csproj" --configuration Release --no-restore --verbosity normal --report-xunit-trx --report-xunit-trx-filename "projection-test-results.trx" + dotnet test "TransactionProcessor.Aggregates.Tests/TransactionProcessor.Aggregates.Tests.csproj" --configuration Release --no-restore --verbosity normal --report-xunit-trx --report-xunit-trx-filename "aggregates-test-results.trx" + dotnet test "TransactionProcessor.Tests/TransactionProcessor.Tests.csproj" --configuration Release --no-restore --verbosity normal --report-xunit-trx --report-xunit-trx-filename "tests-test-results.trx" + dotnet test "TransactionProcessor.DatabaseTests/TransactionProcessor.DatabaseTests.csproj" --configuration Release --no-restore --verbosity normal --report-xunit-trx --report-xunit-trx-filename "database-test-results.trx" - name: Build Docker Image run: docker build . --file TransactionProcessor/Dockerfile --tag transactionprocessor:latest @@ -64,7 +64,7 @@ jobs: FLUENTDOCKER_DOCKER_USE_SUDO: "false" FLUENTDOCKER_DOCKER_PATH: "/usr/bin/docker" run: | - dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --report-trx --report-trx-filename "integration-test-results.trx" + dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-restore --verbosity normal --report-trx --report-trx-filename "integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 if: always()