Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
Created December 8, 2014 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravinggenius/b3c76f1e9180c9a711a1 to your computer and use it in GitHub Desktop.
Save ravinggenius/b3c76f1e9180c9a711a1 to your computer and use it in GitHub Desktop.
rip tap
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
})
})
})
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