Skip to content

Commit 2f655b1

Browse files
committed
jake task for running tests without coverage
1 parent 4a394d4 commit 2f655b1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Jakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ desc('Run tests and check test coverage');
1010
task('test', ['test:cover', 'test:check-coverage'], {async: true}, complete);
1111

1212
namespace('test', function() {
13+
desc('Run tests without coverage');
14+
task('no-cov', {async: true}, function(args) {
15+
var command = "test/run.js";
16+
jake.exec(command, complete, print_opts);
17+
});
18+
1319
desc('Run tests with test coverage');
1420
task('cover', {async: true}, function(args) {
1521
var command = ISTANBUL + " cover test/run.js";

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Assuming you already have NodeJS 0.8.11 or higher installed:
2929
npm install .
3030
make
3131

32+
Note: to use `jake` you need to install it globally:
33+
34+
npm install -g jake
35+
36+
You can view available jake tasks with `jake -T`.
37+
3238
The `jake` or `make` command will run JSHint, all the mocha unit tests, and check the test coverage. To view the test coverage report, open coverage/lcov-report/index.html after running `make`.
3339

3440
You can also run `make test` to just run the tests with coverage, `make test-cov` to run the tests and attempt to open the coverage report in your browser, and `make lint` to run JSHint.

0 commit comments

Comments
 (0)