mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Update naming of CLI test parameter
This commit is contained in:
parent
7f95047a5c
commit
fb33a1412f
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user