May 2007
Intermediate to advanced
944 pages
22h 7m
English
Teardown Strategy
Garbage-Collected Teardown 500
Code Organization
How do we tear down the Test Fixture?
We let the garbage collection mechanism provided by the programming language clean up after our test.

A large part of making tests repeatable and robust is ensuring that the test fixture is torn down after each test and a new one created for the next test run. This strategy is known as a Fresh Fixture (page 311). In languages that provide garbage collection, much of ...
Read now
Unlock full access