Jim Marino wrote: > This also brings up a couple of more general issues about unit tests > and the functioning of the model. For unit tests, I think we should > avoid loading of external resources such as side files. This will get > around these types of issues as well as maintain a shorter run time > for the unit tests, some of which take as long as 6 seconds on my > pokey Mac. In some cases, eliminating loading of external resources may > not be possible, but then that is arguably an integration test :-). >
Or, as in this case, a test of the code that is loading the resource :-) In general I agree - we need to avoid writing tests that require an entire configuration to be loaded. Not being able to test something well in isolation is an indication that it is too coupled to the rest of the environment. -- Jeremy
