Brian Womack
Brian Womack

Reputation: 1

Visual Studio 2017 Unit Tests with C++ and C# with undiscovered C++ tests

With the latest Visual Studio Enterprise 15.7.2 installed cleanly, my solution unit tests work fine for my C# tests, but it acts like there are no C++ unit tests present. Before I added the C# tests, the C++ tests worked just fine. Is it possible to get both working? I went the direction of a separate TestConfig.runsettings, but could not figure out how to specify native code vs. a .NET framework. Even when I right click on the C++ unit test file to 'Run Tests' it says 'No tests found to run', despite compiling that specific .cpp project fine. Any ideas?

Upvotes: 0

Views: 262

Answers (1)

user9793141
user9793141

Reputation:

Try running your test from the "Test Explorer" and see if it detects your c++ and c# tests.

Upvotes: 1

Related Questions