-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtape-modern.javascript.txt
44 lines (30 loc) · 1.99 KB
/
tape-modern.javascript.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
┏━━━━━━━━━━━━━━━━━┓
┃ TAPE-MODERN ┃
┗━━━━━━━━━━━━━━━━━┛
ALTERNATIVES (TAP SERIALIAZING)
==> #See tape
ALTERNATIVES (TEST RUNNER) ==> #See Mocha
VERSION ==> #1.1.2
ASSERTIONS ==> #See Tape-modern assertions doc
┌───────────┐
│ TESTS │
└───────────┘
test('TEST_TITLE', FUNC(ASSERT)) #FUNC can be async
#Test failure if FUNC throws or rejects PROMISE
┌───────────────┐
│ SELECTION │
└───────────────┘
test.skip(...) #Skip this test
test.only(...) #Only run this test
┌───────────────┐
│ EXECUTION │
└───────────────┘
TEST RUN ==> #Started after first test(), on next tick
#Run tests serially until done then process.exit(0|1)
done #PROMISE resolved before exit
┌───────────────┐
│ REPORTING │
└───────────────┘
REPORTERS ==> #See TAP reporters doc
TAP OUTPUT ==> #Printed to stdout (using console.log())
#See TAP format doc for details