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

Notification

Icon
Error

How to apply a default filter to the Tests Window?
MarkLFT
#1 Posted : Tuesday, September 10, 2024 3:07:59 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/10/2024(UTC)
Posts: 4
Location: Indonesia

I am very new to NCrunch, and have just installed it to improve the testing on a very large project.

Our solution has over 100 projects and dozens of test projects, all of which are listed in the NCrunch Tests Window.

But it is going to take time for me to work through all the projects and fix up the tests. But having so many projects and tests showing in the Tests window is very distracting. I know I can use the search button, but after a week of entering the search filter I want several times a day, it is becoming very annoying. Is there a way to hide the projects and test projects I am not interested in until I am ready to deal with them?
Remco
#2 Posted : Tuesday, September 10, 2024 11:31:27 AM(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)
Hi, thanks for posting.

Getting NCrunch up and running on a large solution like this can be some work, but it is very rewarding.

I would suggest adjusting the filter options in the Tests Window to turn off 'Show passing tests'. Normally, you don't need to see the whole list of passing tests. When this is disabled, NCrunch will still report tests that are failing or projects that don't build. Normally we only turn on the showing of passing tests when there is a specific test we are looking for which happens to be passing.
MarkLFT
#3 Posted : Tuesday, September 10, 2024 10:57:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/10/2024(UTC)
Posts: 4
Location: Indonesia

Thanks for the suggestion, and I understand I can filter based on passing tests, but this does not achieve what I am hoping for. What I was hoping for was the ability for NCruch to be able to include or exclude projects based on the project names or namespaces. Like I can do with search, but have it remember the search between vs sessions.
Remco
#4 Posted : Tuesday, September 10, 2024 11:43:17 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)
MarkLFT;17597 wrote:
Thanks for the suggestion, and I understand I can filter based on passing tests, but this does not achieve what I am hoping for. What I was hoping for was the ability for NCruch to be able to include or exclude projects based on the project names or namespaces. Like I can do with search, but have it remember the search between vs sessions.


Sorry, we don't have such a feature. I am a bit confused about why you need this. Are you trying to target certain tests within a session? If so, you might want to try using the options to pin them to the Tests Window.

If you want to turn off certain tests projects until you're ready to handle them, the 'Ignored test' options may be worth a look. You can right-click a test, fixture or project and tell NCrunch to ignore it.
MarkLFT
#5 Posted : Tuesday, September 10, 2024 11:50:55 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/10/2024(UTC)
Posts: 4
Location: Indonesia

But even I ignore it, it still appears in the tests list. In the VS Live Tests I can choose which projects to include. Showing every project, including projects that have no tests, and test projects I am not working on is far too distracting, and overrides any benefits I get from using NCrunch.
Remco
#6 Posted : Wednesday, September 11, 2024 12:05:57 AM(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)
MarkLFT;17599 wrote:
But even I ignore it, it still appears in the tests list. In the VS Live Tests I can choose which projects to include. Showing every project, including projects that have no tests, and test projects I am not working on is far too distracting, and overrides any benefits I get from using NCrunch.


Try turning off the filter option for ignored tests. It is possible to tell the Tests Window to hide them.
MarkLFT
#7 Posted : Wednesday, September 11, 2024 12:20:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/10/2024(UTC)
Posts: 4
Location: Indonesia

I have already turned off the filter for ignored tests, which does a good job of hiding the test projects, but I am still left with the 80+ non-test projects that I do not want or need to see.

It seems what I want is not possible with NCrunch, which I find to be very disappointing. I will go back to using VS's own Live Testing. With that I can just show the tests / projects I want and not see the remainder.

It seems to me NCrunch is good for small projects, but hard work and not really suited to solutions with a large number of projects.
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.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download