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

Notification

Icon
Error

Solution with many projects - filter the tests on project name
Dirk Maegh
#1 Posted : Thursday, March 25, 2021 10:15:04 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 31
Location: Belgium

Thanks: 6 times
Was thanked: 4 time(s) in 4 post(s)
Hi,

in a solution with dozens of projects, I have a lot of projects that contain integration tests and other ones that contain mere unit tests.

Would there be a way that you could have a feature having a test filter (other than the manual pinning and ignoring projects and/or tests) that includes and/or excludes a pattern of projects in the runnable test list ?

That way I could like enter "*.IntegrationTests.csproj" to exclude all integration tests, because I would like to run unittests only, because of the more immediate feedback, and less system churn. (without going manually through every single project and/or test)
Or enter "*.UnitTests.csproj" to use only these projects for running tests.
Or based on a solution folder (off/on) could also be useful ?

Thanks for considering :)
Remco
#2 Posted : Thursday, March 25, 2021 11:34:31 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,424

Thanks: 839 times
Was thanked: 1137 time(s) in 1062 post(s)
Hi, thanks for sharing this idea.

We do already have the tests to execute automatically setting that can be overridden by engine modes and will do a large part of what you're after. Though this won't stop tests from being shown in the Tests Window.

If we had a similar feature that hid tests from the tests window, you could use both of these settings in combination with the show coverage for tests setting to effectively remove tests from the session.

Such a setting would make sense as a new feature request if you'd like to write it up on uservoice?
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.184 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download