Skip to content

Commit

Permalink
Updated documentation with info about new "runAllTestsCommand" property
Browse files Browse the repository at this point in the history
  • Loading branch information
ldgit committed Aug 14, 2018
1 parent 00e84fc commit 9415575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ module.exports = {
arguments: [],
// If you are using mocha for your Javascript tests
testRunnerCommand: 'node_modules/.bin/mocha',
// You can define a custom command to run all tests (runs when you press "a" when Argus is running).
// Otherwise Argus will use testRunnerCommand and its arguments to run all tests.
runAllTestsCommand: { command: 'npm', arguments: ['t'] },
},
],
};
Expand Down
2 changes: 2 additions & 0 deletions argus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
sourceDir: 'src',
arguments: [],
testRunnerCommand: 'node_modules/.bin/mocha',
runAllTestsCommand: { command: 'npm', arguments: ['t'] },
},
{
extension: 'js',
Expand All @@ -15,6 +16,7 @@ module.exports = {
sourceDir: 'src',
arguments: [],
testRunnerCommand: 'node_modules/.bin/mocha',
runAllTestsCommand: { command: 'npm', arguments: ['run', 'test-int'] },
},
],
};

0 comments on commit 9415575

Please sign in to comment.