You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter_27_hot_lava.asciidoc
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,18 +38,18 @@ outline several desiderata (desirable characteristics) for tests:
38
38
39
39
.Test Desiderata
40
40
|===
41
-
| Isolated--tests should return the same results regardless of the order in which they are run.
42
-
| Composable--I should be able to test different dimensions of variability separately and combine the results.
43
-
| Deterministic--if nothing changes, the test result shouldn’t change.
44
-
| Fast--tests should run quickly.
45
-
| Writable--tests should be cheap to write relative to the cost of the code being tested.
46
-
| Readable--tests should be comprehensible for reader, invoking the motivation for writing this particular test.
47
-
| Behavioural--tests should be sensitive to changes in the behaviour of the code under test. If the behaviour changes, the test result should change.
48
-
| Structure-agnostic--tests should not change their result if the structure of the code changes.
49
-
| Automated--tests should run without human intervention.
50
-
| Specific--if a test fails, the cause of the failure should be obvious.
51
-
| Predictive--if the tests all pass, then the code under test should be suitable for production.
52
-
| Inspiring--passing the tests should inspire confidence
41
+
| *Isolated*: tests should return the same results regardless of the order in which they are run.
42
+
| *Composable*: I should be able to test different dimensions of variability separately and combine the results.
43
+
| *Deterministic*: if nothing changes, the test result shouldn’t change.
44
+
| *Fast*: tests should run quickly.
45
+
| *Writable*: tests should be cheap to write relative to the cost of the code being tested.
46
+
| *Readable*: tests should be comprehensible for reader, invoking the motivation for writing this particular test.
47
+
| *Behavioural*: tests should be sensitive to changes in the behaviour of the code under test. If the behaviour changes, the test result should change.
48
+
| *Structure-agnostic*: tests should not change their result if the structure of the code changes.
49
+
| *Automated*: tests should run without human intervention.
50
+
| *Specific*: if a test fails, the cause of the failure should be obvious.
51
+
| *Predictive*: if the tests all pass, then the code under test should be suitable for production.
52
+
| *Inspiring*: passing the tests should inspire confidence
53
53
|===
54
54
55
55
We've talked about almost all of these desiderata in the book:
0 commit comments