Make “FIRST class” test cases (Fast, Independent, Repeatable, Small and Transparent)
Fast. Your test cases should be very fast to execute, every time you want to run all of them it shouldn’t take more than a few seconds for an small application.
Independent. You should be able to run your test cases in any order.
Repeatable. The result of the test case should be always the same, no matter how many times you have executed it before.
Small. Small test cases are easy to understand and change, are also likely to be faster.
Transparent. It should be clear what the purpose of each test case is.
from How to write a good test case: 5 tips to write better test cases
No comments:
Post a Comment