Advertisement

Test Desiderata 8|12: Tests Should Be Isolated (from each other)

Test Desiderata 8|12: Tests Should Be Isolated (from each other) Whether one test passes or not should have no effect on whether another test passes. You can ensure this by either:
1. Only using locally initialized state or
2. Returning the world to exactly its previous state after running each test

This creates tradeoffs with other desiderata, like writability and speed.

You can watch the other videos in the Test Desiderata playlist:

Read the original post:

Episodes in this series are released every Thursday at 9am PT. Unless we forget.

other)

Post a Comment

0 Comments