comforter-cli
Advanced tools
Comparing version
@@ -42,4 +42,7 @@ #! /usr/bin/env node | ||
// set coverage directly if supplied | ||
if (argv.coverage) { | ||
data.coverage = argv.coverage; | ||
if (argv.totalLines) { | ||
data.coverage = { | ||
totalCovered: argv.totalCovered, | ||
totalLines: argv.totalLines | ||
} | ||
} | ||
@@ -46,0 +49,0 @@ |
{ | ||
"name": "comforter-cli", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "cli tool for communicating with comforter instance", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -7,5 +7,5 @@ ## Comforter CLI tool | ||
`npm install -g comforter-cli` | ||
`comforter-cli (--path <path-to-lcov-info-file> OR --coverage <coverage%>) --branch <branch-name> --project <project-id> --commit <sha> --apiKey <key> [--zip <path-to-html-coverage>]` | ||
`comforter-cli (--path <path-to-lcov-info-file> OR --totalLines <lines> --totalCovered <lines>) --name <project-name> --branch <branch-name> --project <project-id> --commit <sha> --apiKey <key> [--zip <path-to-html-coverage>]` | ||
* [x] Accept path to generated coverage html and zip and send to Comforter | ||
* [ ] Use `npm cli` to avoid running tests in exec, allowing coverage and better testing (see [jshint](https://github.com/jshint/jshint) repo for examples) |
11220
0.93%196
1.55%