comforter-cli
Advanced tools
Comparing version
@@ -17,3 +17,3 @@ #! /usr/bin/env node | ||
lcovFile: 'LCOV file could not be found', | ||
missingRequiredParams: 'Missing one or many of required params (commit, branch, project, host, apiKey)', | ||
missingRequiredParams: 'Missing one or many of required params (commit, branch, project, host, apiKey, name)', | ||
zip: 'Coverage folder was not found or could not be zipped' | ||
@@ -38,3 +38,4 @@ }; | ||
commit: argv.commit, | ||
apiKey: argv.apiKey | ||
apiKey: argv.apiKey, | ||
name: argv.name | ||
}; | ||
@@ -41,0 +42,0 @@ |
{ | ||
"name": "comforter-cli", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"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 --coverage <coverage%>) --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) |
@@ -29,3 +29,4 @@ 'use strict'; | ||
project: 1, | ||
apiKey: 'key' | ||
apiKey: 'key', | ||
name: 'stuff' | ||
}; | ||
@@ -50,3 +51,3 @@ | ||
code.expect(err).to.exist(); | ||
code.expect(err.toString()).to.contain('Missing one or many of required params (commit, branch, project, host, apiKey)'); | ||
code.expect(err.toString()).to.contain('Missing one or many of required params (commit, branch, project, host, apiKey, name)'); | ||
done(); | ||
@@ -53,0 +54,0 @@ }); |
11117
0.07%193
1.05%9
-10%