Copy/Paste of an email I just wrote with a request for comments ...
Charlie and others ...
Should a SetUp failure actually be a failed test?
I say no, it should be classified separately as it means something
very different. When my setup fails that means that my code is just
#@#*ed, when my test fails it worked but the expected condition was
not met.
The separation of these two conditions would help greatly to reduce
the number of failed tests when one is using "mini-integration" tests
as when something fundamental breaks it can take out a lot of tests
(298 setups and 2 actual tests) ... What would be the best way of me
getting to the root of the issue?
SetUp failures perhaps should be classified as "critical failures"
since it never actually got to run the test? I would think the same
thing applies for TearDowns but I don't have too many tests myself
where this would be an issue.
Thoughts?