简体   繁体   中英

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?

尝试从“测试资源管理器”中运行测试,看看它是否检测到您的c ++和c#测试。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM