From 8806bb9c7ef5c382826fe95161a70a0900a56317 Mon Sep 17 00:00:00 2001 From: joekolodz Date: Tue, 26 Jul 2022 23:56:40 -0500 Subject: [PATCH 1/4] change test runner upgraded package references so there is no packages folder --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 392667f..929f4f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,15 +30,21 @@ jobs: - name: Build run: msbuild SierraHOTAS.sln -m /p:Configuration=Release +# - name: Test +# run: packages\xunit.runner.console.2.4.1\tools\net472\xunit.console.exe tests\bin\Release\SierraHOTAS.Tests.dll -xml sierrahotas-test-results.xml + - name: Test - run: packages\xunit.runner.console.2.4.1\tools\net472\xunit.console.exe tests\bin\Release\SierraHOTAS.Tests.dll -xml sierrahotas-test-results.xml + run: dotnet test tests\bin\Release\SierraHOTAS.Tests.dll --logger "html;logfilename=sierrahotas-test-results.html" + +# - name: Test +# run: dotnet test tests\bin\Release\SierraHOTAS.Tests.dll --logger "trx;logfilename=sierrahotas-test-results.xml" - name: Upload Unit Test Results if: always() uses: actions/upload-artifact@v2 with: name: Unit Test Results - path: sierrahotas-test-results.xml + path: sierrahotas-test-results.html - name: Create Setup run: msbuild SierraHOTASSetup\SierraHOTASSetup.wixproj -m /p:Configuration=Release From 31c2a5102aeea49bdf094aa5e318552f6e58f6d0 Mon Sep 17 00:00:00 2001 From: joekolodz Date: Wed, 27 Jul 2022 00:19:21 -0500 Subject: [PATCH 2/4] specify folder where test results are dropeed --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 929f4f3..f4623df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: Unit Test Results - path: sierrahotas-test-results.html + path: TestResults\sierrahotas-test-results.html - name: Create Setup run: msbuild SierraHOTASSetup\SierraHOTASSetup.wixproj -m /p:Configuration=Release From 320f02ebac546fe507f66257e6c47f441f720698 Mon Sep 17 00:00:00 2001 From: joekolodz Date: Wed, 27 Jul 2022 11:19:42 -0500 Subject: [PATCH 3/4] test --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4623df..594ad98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Test Variable + run: echo '${{ github.event.repository.name }}' + - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 env: From 8e8888dbb185ce993835d7e87bb5352e3e84b26b Mon Sep 17 00:00:00 2001 From: joekolodz Date: Wed, 27 Jul 2022 11:21:05 -0500 Subject: [PATCH 4/4] remove test --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 594ad98..f4623df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,9 +12,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Test Variable - run: echo '${{ github.event.repository.name }}' - - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 env: