comforter-cli
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -47,2 +47,10 @@ #! /usr/bin/env node | ||
if (argv['merge-base']) { | ||
data.mergeBase = argv['merge-base']; | ||
} | ||
if (argv['target-branch']) { | ||
data.targetBranch = argv['target-branch']; | ||
} | ||
var deferred = q.defer(); | ||
@@ -114,3 +122,4 @@ | ||
.on('fail', fail.bind(null, errors.badRequest)); | ||
}); | ||
}) | ||
.catch(fail.bind(null, errors.badRequest)); | ||
@@ -133,3 +142,3 @@ } | ||
} | ||
if (!params.project || !params.branch || !params.commit || !params.host || !params.apiKey) { | ||
if (!params.project || !params.branch || !params.commit || !params.host || !params.apiKey || !params.name) { | ||
fail(errors.missingRequiredParams); | ||
@@ -136,0 +145,0 @@ } |
{ | ||
"name": "comforter-cli", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "cli tool for communicating with comforter instance", | ||
"scripts": { | ||
"test": "jshint --reporter=node_modules/jshint-stylish lib/*.js test/ && jscs lib/ test/ && lab -v" | ||
"test": "jshint --reporter=node_modules/jshint-stylish lib/*.js test/ && jscs lib/ test/ && lab -v --leaks" | ||
}, | ||
@@ -8,0 +8,0 @@ "bin": { |
@@ -7,5 +7,5 @@ ## Comforter CLI tool | ||
`npm install -g comforter-cli` | ||
`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>]` | ||
`comforter-cli (--path <path-to-lcov-info-file> OR --totalLines <lines> --totalCovered <lines>) --name <project-name> --branch <branch-name> --project <project-id> --commit <sha> [--merge-base <sha>] [--target-branch <branch name>] --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) |
Sorry, the diff of this file is not supported yet
2
1
10107
8
157