Album Cover

Microtesting Java

Close Preview
Tests should not depend on data from other tests.
You've seen examples of tests relying on the same piece of data created by test setup. Sharing the data creation code simplifies writing tests and reduces duplication, while keeping the tests independent.
When tests are independent, we can run any subset of the tests, in any order. We create freedom to move and ease of writing, and avoid wasting time chasing weird test failures.
(Reading...)
| Tweet...
Page rating: | Rate this Page