Remco;11042 wrote:I've just tried this with v3.11.0.5 (which should be the same as 3.10 in this area) using the following command:
..\consoletest\ncrunch.exe classlibrary1.sln -TestsToExecuteAutomatically "(DoesNotHaveCategory 'Integration' AND DoesNotHaveCategory 'Smoke')"
And it seemed to work OK. I'm not sure why the console tool would reject this parameter for you. Can you confirm the precise command line that you've used? In theory, the command you've used should blow up with a different error because no solution or project was specified.
I did run it with a sln file specified actually.
C:\Program Files (x86)\Remco Software\NCrunch Console Tool>ncrunch c:\sample.sln -TestsToExecuteAutomatically "(HasProjectName 'projectName')"
However that sln's ncrunchsolution file has a custom engine mode defined, which we want for sharing via source control. That custom engine mode sets TestsToExecuteAutomatically. Could this be the issue?
And while we're at it, does HasProjectName work for partial name matches, or does it require a full and exact project name to match?
(And I'm guessing a bit at that setting name. But I also tried it with other known settings in case I guessed wrong, and got the same message)