I've followed all the steps outlined in https://www.ncrunch.net/documentation/guides_console-tool-usage for TFS build. I can run my tests normally in VS2017 but building with MSBuild does nothing. I have a special build configuration created for TFS called "Server Build" and all projects are disabled for build except the NCrunchRunner project. Manually running the NCrunch.exe console runner on the solution works, but it's never launched when building with msbuild.
OS: Windows 10
VS: Visual Studio Enterprise 15.8.7
NCrunch Console: 3.22.0.1
NCrunch VS2017: 3.22.0.1
Global Config: https://pastebin.com/hxfRgJJL
Setup Problems
MSBuild does not run tests using NCrunchRunner project
Started by dxbydt on 4,346 views
Nevermind, I figured out that it wasn't running tests because OutDir wasn't defined. OutDir has been deprecated and replaced by OutputPath. I changed the check to look for OutputPath and now it runs.
Remco NCrunch Developer
#12778
22 Oct 2018 23:34 UTC
dxbydt wrote:Nevermind, I figured out that it wasn't running tests because OutDir wasn't defined. OutDir has been deprecated and replaced by OutputPath. I changed the check to look for OutputPath and now it runs.
Thanks for confirming the issue here. I wasn't aware that OutDir was deprecated. We'll take a look at the instructions and get them updated. Sorry for the trouble.
I've found out a bit more. OutDir does need to be defined because of the NCrunch target file uses it to publish the results. However, it definitely wasn't getting defined for whatever reason. I manually defined it in my csproj and that seems to be working.
Post a reply
Log in to reply.