You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Utilities for checking the coverage produced by NYC against extra or missing files
3
4
4
5
## Use
@@ -10,6 +11,7 @@ npx only-covered foo.js bar.js
10
11
```
11
12
12
13
Watch these short videos to see these tools in action:
14
+
13
15
-[Check code coverage robustly using 3rd party tool](https://youtu.be/dwU5gUG2-EM)
14
16
-[Adding code coverage badge to your project](https://youtu.be/bNVRxb-MKGo)
15
17
-[Show code coverage in commit status check](https://youtu.be/AAl4HmJ3YuM)
@@ -31,6 +33,12 @@ The file has to end with "main.js". You can specify part of the path, like this
31
33
npx check-coverage src/app/main.js
32
34
```
33
35
36
+
You can pass multiple filenames
37
+
38
+
```shell
39
+
npx check-coverage main.js src/person.js
40
+
```
41
+
34
42
## only-covered
35
43
36
44
Check if the coverage JSON file only the given list of files and nothing else. By default `only-covered` script reads `.nyc_output/out.json` file from the current working directory. You can specify a different file using `--from` parameter.
0 commit comments