Hi Barry,
Thanks for posting!
Under NCrunch V2, it is only possible to do this using engine modes. This is because the test filters themselves can be attached only to the engine modes. It's possible to choose an engine mode using the '/E' parameter (try '/?' for more information on how to do this).
in NCrunch V3, engine modes were rewired so that instead of being a separate settings system, they are now overrides for other settings. See
Advanced Configuration for more details about this. Basically, this means you can now inject the filter straight into the command line. For example:
NCrunch.exe "\mysolution.sln" -MaxNumberOfProcessingThreads 8 -FastLaneThreads 0 -TestsToExecuteAutomatically "HasCategory 'My Category'"
For examples on how to specify this filter, you can create it using the NCrunch Configuration Window, then inspect your configuration files to see the syntax. The syntax accepted by the console tool is always the same as is written in the config file.