UNPKG
tap-spec
Version:
latest (5.0.0)
5.0.0
4.1.2
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.0.0
2.2.2
2.2.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.0.1
1.0.0
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.0.1
Formatted TAP output like Mocha's spec reporter
github.com/scottcorgan/tap-spec
scottcorgan/tap-spec
tap-spec
/
bin
/
cmd.js
20 lines
(14 loc)
•
279 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env node
var
tapSpec =
require
(
'../'
);
var
tapSpec =
tapSpec
(); process.
stdin
.
pipe
(tapSpec) .
pipe
(process.
stdout
); process.
on
(
'exit'
,
function
(
status
) {
if
(status ===
1
) { process.
exit
(
1
); }
if
(tapSpec.
failed
) { process.
exit
(
1
); } });