Setup and Teardown

Code run before and after each test.

What is Setup and Teardown?

Setup runs before each test (creating objects) and teardown after (cleaning up), so tests don't affect each other.

Level: Journeyman · More Unit Testing terms at this level

Updated