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

Notification

Icon
Error

Select current test in test window without unpin/pin it?
GreenMoose
#1 Posted : Thursday, March 13, 2014 8:00:21 AM(UTC)
Rank: Advanced Member

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

Thanks: 86 times
Was thanked: 40 time(s) in 39 post(s)
v2.6.0.3

I would like a way to focus the current test in the tests window. Now I need to unpin/pin it to get it focused (which I guess might also rerun it if "only pinned" tests are to be run automatically?).

Thanks.
Remco
#2 Posted : Thursday, March 13, 2014 11:47:02 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 700 times
Was thanked: 866 time(s) in 824 post(s)
This was, actually, the inspiration behind the 'pinned test' idea.

The idea was that we needed some way to be able to select a test in the Tests Window based on context (i.e. current line of code, etc).

There were problems with just trying to select a test, as the filters in the Tests Window very often would remove the test from view. Hence the idea to 'pin' the test to the Tests Window, bypassing the filters.

I'm not sure how well such a feature would work if it didn't also pin the test being focused on. In the early alpha builds of NCrunch, the filters on the Tests Window greatly limited the usefulness of this approach, which is why it was discontinued.
GreenMoose
#3 Posted : Thursday, March 13, 2014 12:19:38 PM(UTC)
Rank: Advanced Member

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

Thanks: 86 times
Was thanked: 40 time(s) in 39 post(s)
How about refocusing it if pinning it when it is already pinned?
Remco
#4 Posted : Thursday, March 13, 2014 10:53:50 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 700 times
Was thanked: 866 time(s) in 824 post(s)
It is actually supposed to do this, although a quick test suggests that it isn't working correctly. I've noted this down for a fix. Thanks!
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.021 seconds.