From 941557599878239f6f5d26447c61f31655f4abac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danko=20Lu=C4=8Di=C4=87?= Date: Wed, 15 Aug 2018 01:12:51 +0200 Subject: [PATCH] Updated documentation with info about new "runAllTestsCommand" property --- README.md | 3 +++ argus.config.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 931fb5a..1db1485 100644 --- a/README.md +++ b/README.md @@ -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'] }, }, ], }; diff --git a/argus.config.js b/argus.config.js index d250b5e..0a5b5ab 100644 --- a/argus.config.js +++ b/argus.config.js @@ -7,6 +7,7 @@ module.exports = { sourceDir: 'src', arguments: [], testRunnerCommand: 'node_modules/.bin/mocha', + runAllTestsCommand: { command: 'npm', arguments: ['t'] }, }, { extension: 'js', @@ -15,6 +16,7 @@ module.exports = { sourceDir: 'src', arguments: [], testRunnerCommand: 'node_modules/.bin/mocha', + runAllTestsCommand: { command: 'npm', arguments: ['run', 'test-int'] }, }, ], };