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: contributing.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ Groups of tests are in `.bats` files in the repository root. You can [run tests
23
23
24
24
Discrete chunks of code should have a discrete set of tests. If possible, tests should call the relevant function rather than running the whole script.
25
25
26
-
Write test names so that they tell a story for a test group, and indent each test.
26
+
Write tests like [executable specifications](https://youtu.be/XcT4yYu_TTs?t=17m20s).
27
+
28
+
Group together tests that share a common subject by indenting test names with spaces, to achieve output similar to [Mocha](http://mochajs.org/#spec) or [RSpec](http://rspec.info/#asciicast-iframe-14103).
27
29
28
30
For anything that involves touching the file system, use `setup()` & `teardown()` functions to create a temporary directory:
0 commit comments