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

Notification

Icon
Error

NCrunch Hot Spots not updating when coverage filter is active
GreenMoose
#1 Posted : Tuesday, October 1, 2024 8:46:14 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)
[v5.6.0.1]

Given I have filtered test coverage, Is NCrunch Hot Spots supposed to update between test runs or not?

Repro:
1. Run test1 in a new process.
2. Show code coverage only for that test, notice window "Ncrunch Hot Spots" is reflecting this filtered coverage.
3. Run same test again within existing test process, coverage markers are updating but NCrunch hot spots is not updating.

Expected: Hot spots to update automatically similar to the coverage markers
Actual: Hot spots only updates when I run "show coverage for covering tests only".

Scenario:
While focusing on 1 test while developing, I want to see the hotspots so I catch bottle necks early in process.
Now the work process is something like "show coverage for test1" -> <hot spots updating> -> "alter code" -> <test executing in new process> -> "run test in existing process" -> <test executing in existing process> -> "show coverage for covering tests only" -> <hot spots updating>.

Thanks.
Remco
#2 Posted : Tuesday, October 1, 2024 12:02:47 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
The hot spots window is the only window in the NCrunch UI that doesn't automatically update itself as the underlying data changes. It's the only part of the UI that has a Refresh button.

We didn't really want it to be like this, but it's a very expensive view to create, and updating it in real time risks sending the engine's core thread out to lunch while the window is open.

So unfortunately for this workflow, you'll need an extra button click to get the latest data on screen.
1 user thanked Remco for this useful post.
GreenMoose on 10/2/2024(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.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download