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

Notification

Icon
Error

NCrunch console warnings in log output?
GreenMoose
#1 Posted : Wednesday, March 22, 2017 1:01:40 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
In my NCrunch Console's TestResults folder I get something like
Quote:
NUnit tests have been detected with the same name


Is it possible somehow to include these in log so I can fail the build if I spot NCrunch warnings?

Thanks.
Remco
#2 Posted : Wednesday, March 22, 2017 10:53:25 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
This warning is included in the AllResults.html file along with more detailed information that includes the tests with duplicate names.

Or are you looking for a specific string to go into the NCrunch internal logs so you can pick this up with a Regex? I generally recommend steering away from tying into the internal NCrunch logs.. because they are .. well.. internal.
GreenMoose
#3 Posted : Thursday, March 23, 2017 4:42:17 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Yeah my intention was to fail the TeamCity build if it finds a ncrunch warning in logs (as it does for all other warnings).

I can parse the html output file but that's not pretty :)
Remco
#4 Posted : Thursday, March 23, 2017 5:28:19 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
GreenMoose;10096 wrote:
Yeah my intention was to fail the TeamCity build if it finds a ncrunch warning in logs (as it does for all other warnings).

I can parse the html output file but that's not pretty :)


I can't make promises on this right now, but I'll take a look :)
1 user thanked Remco for this useful post.
GreenMoose on 3/23/2017(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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download