Set default engine mode per solution
Whilst I want the majority of test within a solution to run I have some that have resource dependencies (integration type tests) that I don't want to be run automatically.
Use of a custom engine mode based on categories allows me to do this but of course the default mode is "run everything" which is not what one wants.
So therefore, I would like to be able to set my custom "all but integration" mode as the default for a solution so that I don't have to worry too much
-
Hi,
Thanks for requesting this feature! Although NCrunch should already allow you to do this :)
When you set the current engine mode with a solution open, NCrunch will remember your selection and store this in the .ncrunchsolution.user file when you later close the solution or the IDE. This means when the solution is later opened, NCrunch will automatically reselect the engine mode you were last using for this solution.
One thing that can often cause problems with this is if you have the .ncrunchsolution.user file stored in your VCS and it is marked as read-only. This can prevent NCrunch from saving your user-specific settings on exist. If you think this may be giving you trouble, the best option is to simply remove the file from your VCS and keep it as a local user-specific file.