Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MSBuild does not run tests using NCrunchRunner project
dxbydt
#1 Posted : Monday, October 22, 2018 7:07:32 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/22/2018(UTC)
Posts: 4
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
I've followed all the steps outlined in https://www.ncrunch.net/...ides_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
dxbydt
#2 Posted : Monday, October 22, 2018 9:33:18 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/22/2018(UTC)
Posts: 4
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
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
#3 Posted : Monday, October 22, 2018 11:34:54 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,122

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
dxbydt;12776 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.
dxbydt
#4 Posted : Monday, October 22, 2018 11:36:23 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/22/2018(UTC)
Posts: 4
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
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.
1 user thanked dxbydt for this useful post.
Remco on 10/22/2018(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download