Opencover и MSTest2 - PullRequest
       56

Opencover и MSTest2

0 голосов
/ 15 мая 2019

Использование Opencover для генерации файлов покрытия кода. Используемая команда:

C:\Users\xyz\.nuget\packages\opencover\4.7.922\tools>OpenCover.Console.exe -register:user -target:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" -targetargs:"/noisolation /testcontainer:\"E:\ABc\XYZService\src\UnitTestProject\tests\bin\Debug\UnitTestProject.dll\"" -filter:"+[UnitTestProject*]*" -mergebyhash -output:C:\Opencover\Report.xml

Я получаю ошибку как: The test source file "/noisolation" provided was not found.

Committing... No results, this could be for a number of reasons. The most common reasons are: 1) missing PDBs for the assemblies that match the filter please review the output file and refer to the Usage guide (Usage.rtf) about filters. 2) the profiler may not be registered correctly, please refer to the Usage guide and the -register switch.

Я также попытался запустить тесты, используя MSTest.exe - который успешно выполняет команду, но тесты не выполнялись.

Loading E:\ABc\XYZService\src\UnitTestProject\tests\bin\Debug\UnitTestProject.dll... Starting execution... No tests to execute.

...