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?
Daily Usage Issues
How to apply a default filter to the Tests Window?
Started by MarkLFT on 2,143 views
Remco NCrunch Developer
#17592
10 Sep 2024 11:31 UTC
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.
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.
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 NCrunch Developer
#17598
10 Sep 2024 23:43 UTC
MarkLFT 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.
Edited 10 Sep 2024 23:44 UTC
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 NCrunch Developer
#17600
11 Sep 2024 00:05 UTC
MarkLFT 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.
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.
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.
Post a reply
Log in to reply.