Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from Financial-Times/allow-any-command
Browse files Browse the repository at this point in the history
Allow any make command (based on suite)
  • Loading branch information
ironsidevsquincy authored Sep 20, 2016
2 parents 204a66e + 5a76273 commit 3088127
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ module.exports = class Automation {

static run ({
nightwatchJson,
regressionCommand='make regression',
smokeCommand='make smoke',
verbose=true,
compact=false,
packageJson = {},
Expand All @@ -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;
Expand Down

0 comments on commit 3088127

Please sign in to comment.