I'm using NUnit.Framework to test my .NET Framework project. I want to run my tests via GitHub Actions. Yml file:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.x'
- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v1
- name: Build
run: msbuild.exe .\CalcStatistics\CalcStats\CalcStats.sln
- name: Setup VSTest and add to PATH
uses: darenm/Setup-VSTest@v1
- name: Run VSTest
id: run_vstest
run: vstest.console.exe .\CalcStatistics\CalcStats\CalcStatsTests\bin\Debug\CalcStatsTests.dll /Platform:x64
In response I get : No tests is available. I'm tried to run tests via MsBuild with the following command :
run:& "$(vswhere -property installationPath)\Common7\IDE\MSTest.exe" /testcontainer:.\CalcStatistics\CalcStats\CalcStatsTests\bin\Debug\CalcStatsTests.dll
I'm receive the same notification that no tests is available.
