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

Notification

Icon
Error

Is there a way of excluding all projects in a certain directory?
yworksjr
#1 Posted : Tuesday, July 29, 2025 9:18:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/12/2015(UTC)
Posts: 8
Location: Germany

Was thanked: 1 time(s) in 1 post(s)
Good morning,

We have a fairly large solution in which we typically develop (around 200 projects). Most of those are demo/example applications, a few are the library we're actually developing, and a few are test projects. So far I've manually excluded each and every demo application from NCrunch (because they contain no tests and are basically irrelevant here). However, that's about 130 individual `.v3.ncrunchproject` files and every time a new project is added, we have to exclude it as well.

So is there a more elegant way here? Can I apply NCrunch project-level configuration based on file system location, e.g. by adding a configuration file in the directory where all the to-be-ignored projects reside? Or is there a way of having a list of projects to ignore in a central location that supports wildcards? I could also do this with MSBuild properties if that is an option.

Since we're just two team members using NCrunch (the others seem to be fine not running tests or having to wait each time), I'd like to spare them from regularly having commits that add the missing `.ncrunchproject` files.

Regards,
Johannes
Remco
#2 Posted : Tuesday, July 29, 2025 9:33:02 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 991 times
Was thanked: 1334 time(s) in 1237 post(s)
Hi, thanks for posting.

There is nothing in the NCrunch configuration system that can do exactly what you're asking for. But if most of the projects are demo/example applications, does it make sense for them to be in the same solution? Could you perhaps set up a separate solution file containing only the projects you're working on, and have NCrunch target that?
yworksjr
#3 Posted : Wednesday, July 30, 2025 12:29:08 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/12/2015(UTC)
Posts: 8
Location: Germany

Was thanked: 1 time(s) in 1 post(s)
Hey, thanks for clarifying my suspicions.

Having the whole set of projects available in a single solution has proven to be much nicer than separating this out by task in the past. And since VS (w/o ReSharper) is fairly quick in loading such large solutions there wasn't much need to split this again. Things like quickly trying out different parts of the product require a different set of those sample applications, refactoring needs the whole set, checking whether everything still builds, etc. And since only two people on our team use NCrunch (i.e. value quick test feedback) splitting the solution into different ones is probably not feasible.

But thanks for the answer nonetheless; it was just an idea how I could manage this a bit more effectively. The current approach does work, and there aren't that many new projects appearing, anyway.
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