Aidan;7086 wrote:If I use the resync button then that should only run tests filtered by the Engine Mode selected right?
That's correct. If you have an active engine mode filter that should prevent these tests being run, and they are queued when you reset the engine, then it's a bug .. and I'll need more info on how to reproduce it :)
Aidan;7086 wrote:
I am a bit surprised that the 'Engine mode' does not trump anything else but an explicit "run this test" action. but I suppose I can see it is tricky to know the intent... and few people (I hope!) have 'tests' that actively harm a local install of the thing under test!
It's a hard one to get right, as everyone has different preferences and different test designs. I expect that the engine modes will become more powerful and configurable over time.. though of course this needs to be balanced against UI/configuration complexity (which is increasing rapidly).
You may also want to investigate using the 'Explicit' attribute on these tests. NCrunch should now handle Explicit tests correctly by not automatically executing them, and explicit tests are also excluded from the 'Run all tests' option.
Of course, the best approach is always to try and fix the tests. If you can get them using a different database instance, that would probably save you a great deal of confusion in future. It may be as simple as having an alternative connection string?