File tree Expand file tree Collapse file tree 2 files changed +25
-14
lines changed Expand file tree Collapse file tree 2 files changed +25
-14
lines changed Original file line number Diff line number Diff line change 1
1
# tap-diff
2
2
3
- [ ![ npm version ] ( https://badge.fury.io/js/tap-diff.svg )] ( http://badge.fury.io/js/tap-diff )
3
+ > The most human-friendly TAP reporter
4
4
5
- The most human-friendly [ TAP reporter] ( https://github.com/substack/tape#pretty-reporters ) .
5
+ <!-- @shields('npm')-->
6
+ [ ![ npm version] ( https://img.shields.io/npm/v/tap-diff.svg )] ( https://www.npmjs.com/package/tap-diff )
7
+ <!-- /@-->
6
8
7
9
![ Screenshot] ( screenshot1.png )
8
10
9
11
![ Screenshot] ( screenshot2.png )
10
12
13
+ ## Installation
14
+
15
+ ``` sh
16
+ npm install --global tap-diff
17
+ ```
18
+
11
19
## How to use
12
20
13
21
You can use tap-diff in the same way as other [ TAP reporters] ( https://github.com/substack/tape#pretty-reporters ) .
14
22
15
- ```
16
- npm install -g tap-diff
17
- ```
18
-
19
- ```
23
+ ``` sh
20
24
tape ./* .test.js | tap-diff
21
25
```
22
26
23
27
tap-diff uses [ chalk] ( https://www.npmjs.com/package/chalk ) for adding color, which automatically detects
24
28
color terminals. If you're piping the output and want to force color:
25
29
26
- ```
27
- FORCE_COLOR=t tape ./*.test.js | tap-diff
28
- ```
30
+ FORCE_COLOR=t tape ./*.test.js | tap-diff
29
31
30
32
Or use with ` createStream() ` :
31
33
@@ -52,4 +54,4 @@ test('timing test', (t) => {
52
54
53
55
## License
54
56
55
- MIT
57
+ [ MIT] ( ./LICENSE ) © [ axross ] ( http://axross.me/ )
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.1" ,
4
4
"description" : " The most human-friendly TAP reporter" ,
5
5
"main" : " ./distributions/index.js" ,
6
+ "preferGlobal" : true ,
6
7
"bin" : {
7
8
"tap-diff" : " ./distributions/cli.js"
8
9
},
9
10
"scripts" : {
10
11
"babel" : " babel ./sources --out-dir ./distributions" ,
11
- "test" : " echo \" Error: no test specified\" && exit 1"
12
+ "test" : " mos test" ,
13
+ "md" : " mos"
12
14
},
13
15
"author" : " axross <kou@axross.org> (http://axross.me/)" ,
14
16
"license" : " MIT" ,
24
26
"through2" : " ^2.0.0"
25
27
},
26
28
"devDependencies" : {
27
- "babel" : " ^5.8.34"
29
+ "babel" : " ^5.8.34" ,
30
+ "mos" : " ^1.3.1" ,
31
+ "mos-plugin-readme" : " ^1.0.4"
28
32
},
29
33
"repository" : {
30
34
"type" : " git" ,
41
45
" test" ,
42
46
" reporter" ,
43
47
" diff"
44
- ]
48
+ ],
49
+ "mos" : {
50
+ "plugins" : [
51
+ " readme"
52
+ ]
53
+ }
45
54
}
You can’t perform that action at this time.
0 commit comments