Skip to content

Commit c8307bb

Browse files
committed
It is a much more pleasant experience to auto detect by default.
You can still also specify file and dir paths as well.
1 parent 5a53837 commit c8307bb

32 files changed

+467
-349
lines changed

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
coverage
1+
/coverage
22
node_modules
3-
npm-debug.log
4-
.test
53
tags
4+
.nyc_output

.npmignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vile.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,7 @@ vile:
2121

2222
depcheck:
2323
config:
24-
ignore_dev_deps: false
25-
ignore_dirs:
26-
- src
27-
- typings
28-
- node_modules
29-
- coverage
30-
- tmp
31-
ignore_deps:
32-
- mocha
33-
- babel-cli
34-
- coffee-script
35-
- istanbul
36-
- release-it
37-
- typescript
38-
- wrench
39-
- pryjs
40-
- shelljs
41-
- "vile-**"
24+
ignore_dev_deps: true
4225

4326
coverage:
4427
config:

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1-
# vile-coverage [![Circle CI](https://circleci.com/gh/forthright/vile-coverage.svg?style=shield&circle-token=99e11e5fda6649fe9d8ee644b3d1e1337322a5d6)](https://circleci.com/gh/forthright/vile-coverage) [![Build status](https://ci.appveyor.com/api/projects/status/rmu0fbuuxpirxrpk/branch/master?svg=true)](https://ci.appveyor.com/project/brentlintner/vile-coverage/branch/master) [![score-badge](https://vile.io/api/v0/projects/vile-coverage/badges/score?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage) [![security-badge](https://vile.io/api/v0/projects/vile-coverage/badges/security?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage) [![coverage-badge](https://vile.io/api/v0/projects/vile-coverage/badges/coverage?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage) [![dependency-badge](https://vile.io/api/v0/projects/vile-coverage/badges/dependency?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage)
1+
# vile-coverage [![Circle CI](https://circleci.com/gh/forthright/vile-coverage.svg?style=shield&circle-token=99e11e5fda6649fe9d8ee644b3d1e1337322a5d6)](https://circleci.com/gh/forthright/vile-coverage) [![Build status](https://ci.appveyor.com/api/projects/status/rmu0fbuuxpirxrpk/branch/master?svg=true)](https://ci.appveyor.com/project/brentlintner/vile-coverage/branch/master) [![score-badge](https://vile.io/api/v0/projects/vile-coverage/badges/score?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage) [![coverage-badge](https://vile.io/api/v0/projects/vile-coverage/badges/coverage?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage) [![dependency-badge](https://vile.io/api/v0/projects/vile-coverage/badges/dependency?token=USryyHar5xQs7cBjNUdZ)](https://vile.io/~brentlintner/vile-coverage)
22

33
A [Vile](https://vile.io) plugin for tracking your project's test coverage.
44

5-
## Supported Formats
6-
7-
* lcov
8-
9-
*Note: Currently only total file coverage is generated. Ideally, per method
10-
and per line coverage stats will be supported by Vile in future versions.*
11-
125
## Requirements
136

147
- [Node.js](http://nodejs.org)
158

169
## Installation
1710

11+
This plugin is already packaged with [vile's core lib](https://github.com/forthright/vile),
12+
but you can also install it manually:
13+
1814
npm i -D vile vile-coverage
1915

20-
## Specify Data
16+
## Supported Formats
17+
18+
* lcov
19+
20+
*Note: Currently only total file coverage is generated. Ideally per method
21+
and per line coverage stats will be supported by Vile in future versions.*
22+
23+
## Config
24+
25+
The plugin will automatically detect any `lcov` data in `coverage/` if it exists.
26+
27+
You can also specify custom paths/files:
2128

2229
```yaml
2330
coverage:
2431
config:
25-
path: path/to/data.lcov
32+
paths:
33+
- special/cov/dir
34+
- another/file.lcov
2635
```
2736
2837
## Versioning

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ install:
3636

3737
test_script:
3838
- npm run compile
39-
- npm run compile-dev
40-
- npm run test-cov
39+
- npm run test

bin/compile

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/compile-dev

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/dev

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#!/usr/bin/env sh
2-
babel -w -d lib -m common --compact false src &
3-
coffee -cwbo .test test &
2+
babel -w -d lib -m common --compact false src

circle.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ checkout:
1010
dependencies:
1111
post:
1212
- npm run compile
13-
- npm run compile-dev
1413

1514
test:
1615
override:

0 commit comments

Comments
 (0)