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

Notification

Icon
Error

What has impacted a test?
kweinberg
#1 Posted : Tuesday, January 14, 2020 5:30:24 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/18/2019(UTC)
Posts: 2
Location: United States of America

Hello!

I'm trying to use NCrunch to only run the impacted tests to speed up our continuous integration processes. With the current NCrunch configuration, I'm ensuring that we're only executing tests with the "IsImpacted" trait on them. However, even though zero changes have been made, the majority of the tests still run. I suspect this may be because of some code generation that occurs at build-time but there could be other reasons too. Is there a way to tell what caused a test to be impacted?

Thank you in advance!

Kevin
Remco
#2 Posted : Tuesday, January 14, 2020 11:48:21 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Kevin,

Thanks for posting! If the code generation produces a consistent result, then it shouldn't trigger the impact detection. Most likely the cause for this not working correctly on the CI server is that the NCrunch cache file isn't being preserved between runs. Check that you have the NCrunch Cache Storage Path setting set to a fixed path that is outside your checkout directory on your CI server. The NCrunch cache file should be saved and shared between runs on your CI server.
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