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

Notification

Icon
Error

Pin all tests in class (or in current file)
willdean
#1 Posted : Tuesday, March 24, 2026 8:49:19 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/31/2012(UTC)
Posts: 39
Location: England

Thanks: 8 times
Was thanked: 4 time(s) in 4 post(s)
I hope this is a feature suggestion and not an opportunity to by made to look a fool.

I very frequently want to pin all the tests in a test fixture class - this is because I'm working on a particular class and want to see if there are regressions. I know I should be able to rely on impact detection, but the effect of that depends on what run mode I have NC in, and often I just want to see all the tests pinned.

If the test fixture class has a constructor or a setup method, this will have some green dots I can right-click and choose "pin all covering tests", but if it *doesn't* have one of those methods, then I have never found a way to do a "pin all in file" or "pin all in class".

I recognise that the UI probably doesn't need any more variants of "pin this" or "run that" - so could "CTRL M P" gain an additional behaviour - when you're over a class *but not over a method*, then all the test methods in that class get pinned?

Thanks.
Remco
#2 Posted : Tuesday, March 24, 2026 8:54:17 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1021 times
Was thanked: 1371 time(s) in 1272 post(s)
Hi, thanks for sharing this.

Right now there is no one step way to do this. The fastest way to do it would be to pin the child test (via the hotkey or coverage markers), then select the (now visible) fixture test in the Tests Window and choose to pin that one.

I'll take the feature request under consideration :)
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download