Error trying to run mstest on jenkins

后端 未结 4 1710
傲寒
傲寒 2020-12-15 05:11

I´m trying to configure MSTest build plugin on jenkins, but I´m getting the following error:

Path To MSTest.exe: mstest.exe
Result file was not found so no a         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 05:37

    Another thing to notice: This does not work with .NetCore, just with the regular .Net Framework: (See https://github.com/Microsoft/vstest/issues/1213#issuecomment-338561792 and https://developercommunity.visualstudio.com/content/problem/238572/mstest-command-line-reports-no-tests-to-run.html)

    I used a batch job in Jenkins with something like the following code:

    dotnet test src\Folder\Project.csproj --logger:trx

    Please find the full reference for dotnet test here: https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-test?tabs=netcore21

提交回复
热议问题