From fb33a1412fdcf07ae2060b709fefbe7f3eeaff70 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Fri, 20 May 2016 19:35:31 +0200 Subject: [PATCH] Update naming of CLI test parameter --- bin/serverless | 2 +- tests/integration/Serverless.js | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/serverless b/bin/serverless index db833e792..25d094b9e 100755 --- a/bin/serverless +++ b/bin/serverless @@ -17,7 +17,7 @@ const serverless = new Serverless({ }); // check if it's a test (e.g. an integration test) and modify the serverless instance accordingly -if (process.argv.indexOf('--test') > -1) { +if (process.argv.indexOf('--serverless-integration-test') > -1) { serverless.instances.pluginManager.addPlugin(TestsPlugin); } diff --git a/tests/integration/Serverless.js b/tests/integration/Serverless.js index b86b22e94..f070108f7 100644 --- a/tests/integration/Serverless.js +++ b/tests/integration/Serverless.js @@ -22,11 +22,12 @@ describe('Serverless integration tests', () => { }); }; - execute(`${path.join(process.env.PWD, 'bin', 'serverless')} test integration --test`, - (consoleOutput) => { - const commands = JSON.parse(consoleOutput); - expect(commands).to.deep.equal(testsPlugin.commands); - done(); - }); + execute(`${path.join + (process.env.PWD, 'bin', 'serverless')} test integration --serverless-integration-test`, + (consoleOutput) => { + const commands = JSON.parse(consoleOutput); + expect(commands).to.deep.equal(testsPlugin.commands); + done(); + }); }); });