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

Notification

Icon
Error

NCrunch test duration not reporting correctly to TeamCity
Grendil
#1 Posted : Wednesday, September 20, 2017 9:21:16 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/18/2017(UTC)
Posts: 47
Location: United States of America

Thanks: 19 times
Was thanked: 9 time(s) in 9 post(s)
I believe this is a bug report:

NCrunch console, when TeamCity is detected, outputs TestFinished messages that TeamCity picks up for test reporting. (Great feature!) These include a Duration attribute which is needed because otherwise TeamCity reports durations incorrectly under NCrunch's parallel execution. (NCrunch writes the full test report at once after the test finishes, so the durations end up being reported as near zero if TeamCity is left to implicitly derive them.)

The bug?: NCruch console is writing these duration values as decimals, while they need to be ints in order to be used by TeamCity.

From this TeamCity doc page:

Quote:
duration (optional numeric attribute) - sets the test duration in milliseconds (should be an integer) to be reported in TeamCity UI.

I've got a post processing wrapper on the console that is converting these to integers before writing the message to TeamCity, and when I do that I can confirm that TeamCity reports the duration correctly.

We're using TeamCity 2017.1.4
1 user thanked Grendil for this useful post.
GreenMoose on 9/21/2017(UTC)
Remco
#2 Posted : Wednesday, September 20, 2017 11:17:14 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 648 times
Was thanked: 752 time(s) in 717 post(s)
Thanks for sharing this problem. The TeamCity integration is way out of date and is due for an overhaul. I've made a note of this issue to get it addressed with the rest of the integration.
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.019 seconds.