14 Mar
2010
14 Mar
'10
10:46 p.m.
The test in question tests the Preferences object. It is not possible to replace it with a stub because then the test becomes meaningless.
I use a command line option to tell my app that it is being tested. This adjusts its behavior in a number of respects. For one, this causes each test to use a unique preference set. That way the tests do not step on my personal preferences and multiple tests can be run in parallel.
Just my $.02
Bill