File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,22 @@ Test.describe('foo', function(){
112
112
});
113
113
```
114
114
115
+ A final remark on test grouping: if you have a look into some TDD books,
116
+ you'll notice that they encourage you to use a _ single_ assertion in a
117
+ test, not multiple as in this section's first example. This is also
118
+ the subject [ of a programmers SE question] [ programmers-tdd-assert ] .
119
+
120
+ However, some languages on Codewars don't provide the proper means to
121
+ couple tests (label/text) with assertions, for example Python. It would
122
+ be cumbersome to add a single ` it("...") ` for every assertion and clutters
123
+ the test code. In those cases, you should write a helper that takes care
124
+ of this.
125
+
126
+ Either way, you should always make sure that the user knows the reason for
127
+ failing tests (see next section).
128
+
129
+ [ programmers-tdd-assert ] : http://programmers.stackexchange.com/q/7823/7515
130
+
115
131
116
132
### Make errors obvious
117
133
You can’t perform that action at this time.
0 commit comments