Closed Aldaviva closed 1 year ago
Well that fucking sucked.
dotnet test
because dotnet
can't target just one project, so it tries to build all projects in the solution, but one of the projects is a C++ project it can't build, so you have to build with dotnet build & dotnet publish
and run with dotnet vstest
.<RuntimeIdentifiers>win;win-x64;win-x86</RuntimeIdentifiers>
to make package locks work.packages.lock.json
in old MSBuild C# projects, but not in new .NET SDK-style projects.dotnet vstest
saves test output folder in solution directory, not test project directory.
The test project was failing to compile when I was working on #6 due to the following error, so I skipped that project by explicitly building the C++ plugin project instead of the entire solution.
I have since updated the Test project to xUnit 2.4.2, the latest stable version available, and tests do compile and pass on my development computer.
It may be worth trying once again to get the tests running in CI, and maybe add coverage reporting too.