Update naming of CLI test parameter

This commit is contained in:
Philipp Muens 2016-05-20 19:35:31 +02:00
parent 7f95047a5c
commit fb33a1412f
2 changed files with 8 additions and 7 deletions

View File

@ -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);
}

View File

@ -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();
});
});
});