Grendil;11046 wrote:
What is the easiest way to have the command line target just one project itself and not its dependent brethren? We're trying to set up a build server to run separate jobs for different test projects, even if they have some mudball relations between them.
In terms of build execution, this can only be achieved by restructuring your solution so that there are no build dependencies between your projects. You could do this by replacing ProjectReferences with AssemblyReferences. In this way, NCrunch will treat the referenced projects as being simple binaries rather than projects that need to be compiled and processed. I can suggest no way of doing this that won't involve gutting your projects and making them difficult to work on outside the build system.
In terms of test execution, this would be done using the TestsToExecuteAutomatically filter, either as an engine mode or injected into the tool through the command line. The filter has a condition that can be used to run tests only within a specific namespace. Or alternatively, you could apply a category to the tests at assembly level using NCrunch.Framework.CategoryAttribute inside AssemblyInfo.cs, then use the category condition on the filter.