Created
December 8, 2014 18:21
-
-
Save ravinggenius/b3c76f1e9180c9a711a1 to your computer and use it in GitHub Desktop.
rip tap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test = System.require('test') | |
test.group('group name', -> (t) { | |
t.test('test name', -> (t) { | |
t.expect(1 + 1) toEqual 2 | |
}) | |
t.test('failing test', -> (t) { | |
t.expect(1 + 1) toEqual 1 | |
}) | |
t.group('sub-group name', -> (t) { | |
t.test('test name', -> (t) { | |
t.expect(2 + 3).not toEqual 4 | |
t.expect(2 + 3) toEqual 5 | |
}) | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1..4 | |
ok 1 group name test name # expect 2 to equal 2 | |
not ok 2 group name failing test # expect 2 to equal 1 | |
ok 3 group name sub-group name test name # expect 5 to not equal 4 | |
ok 4 group name sub-group name test name # expect 5 to equal 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment