|
|
Stephen wrote:
> That’s right for each unit test you can and generally must prep
are the
> data the unit has to test.
That I knew. :-)
> You can run them in any order and since they are independent tests they
> do not rely on other tests passing or failing.
I can see situations in which a test would rely on other tests succeeding
.
You can't test "read from a file" if "open a file" fails, for example. An
d
if "open a file" fails in a way that leaves "read from a file" dumping co
re,
it can be messy to rearrange tests and still know what's failing.
--
Darren New, San Diego CA, USA (PST)
Human nature dictates that toothpaste tubes spend
much longer being almost empty than almost full.
Post a reply to this message
|
|