From 5a7627384ee5886a25542cbd8d444eb83812afbd Mon Sep 17 00:00:00 2001 From: Darren Hurley Date: Tue, 20 Sep 2016 12:03:47 +0100 Subject: [PATCH] Allow any make command (based on suite) --- src/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index cb41c4f..53c9a52 100644 --- a/src/main.js +++ b/src/main.js @@ -80,8 +80,6 @@ module.exports = class Automation { static run ({ nightwatchJson, - regressionCommand='make regression', - smokeCommand='make smoke', verbose=true, compact=false, packageJson = {}, @@ -94,7 +92,7 @@ module.exports = class Automation { throw new Error('must specify nightwtach config path') } - const command = suite && suite === 'smoke' ? smokeCommand : regressionCommand; + const command = `make ${suite}`; logger.info(`Starting ${suite} tests...`); const reportsPath = nightwatchJson.output_folder;