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

Notification

Icon
Error

Solution Filter
fsdschmidt
#1 Posted : Thursday, February 25, 2021 1:27:42 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Hi,

we have larger solutions and I use the solution filter feature (slnf) of Visual Studio for better performance. All works fine but seemingly NCrunch ignores the filtered solution, builds and tests all projects. Are solution filter unsupported?

Regards,
Micha
Remco
#2 Posted : Thursday, February 25, 2021 11:07:26 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 974 times
Was thanked: 1302 time(s) in 1207 post(s)
Hi Micha,

Thanks for posting.

We can't support this feature, because its function is to prevent VS from loading projects that we need to be able to build and load into an environment in which to run your tests. Sorry.
fsdschmidt
#3 Posted : Friday, February 26, 2021 6:57:37 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Ok, thanks for your fast reply. The advantage of this limitation is that I can see if my changes effects the whole unfiltered solution and if tests runs on grid node it's ok. :)
erwinvandervalk
#4 Posted : Tuesday, February 11, 2025 7:25:56 AM(UTC)
Rank: Member

Groups: Registered
Joined: 12/23/2019(UTC)
Posts: 12
Location: Netherlands

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Just out of curiosity, While I understand that you cannot limit what you load (and or build) when you have slnf files open, wouldn't it be possible to at hide projects not in the filter and not to (automatically) run tests that are not in the filter?
Remco
#5 Posted : Tuesday, February 11, 2025 8:08:39 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 974 times
Was thanked: 1302 time(s) in 1207 post(s)
erwinvandervalk;17902 wrote:
Just out of curiosity, While I understand that you cannot limit what you load (and or build) when you have slnf files open, wouldn't it be possible to at hide projects not in the filter and not to (automatically) run tests that are not in the filter?


We don't have any facility to let you hide these projects in the Tests Window according to anything other than the available filters on this window. However, there IS an option for selective automatic execution of tests via the custom engine modes.

You can set up a custom engine mode that uses a filter on the 'Tests to execute automatically' setting that specifically excludes projects that match a name filter. You can make the condition larger to include the name of every project you want to exclude. If the UI makes it annoying to do this for every project, note that you can also edit these filters in your NCrunch settings files in XML format, where you can copy/paste easily.

Another option would be to use Assembly-level category attributes (which are respected by NCrunch) to categorise all tests within a project. You can then set the above filter to exclude or include tests based on this category.
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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download