Skip to content

Commit

Permalink
fix Cypress run script (mattermost#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril authored Jul 13, 2019
1 parent e70badf commit a5da84a
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 2 deletions.
224 changes: 224 additions & 0 deletions e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"cypress-file-upload": "3.1.2",
"express": "4.17.1",
"merge-deep": "3.0.2",
"mocha-junit-reporter": "1.22.0"
"mocha-junit-reporter": "1.22.0",
"start-server-and-test": "1.9.1"
},
"scripts": {
"cypress:run": "cypress run",
"cypress:open": "cypress open",
"start:webhook": "node webhook_serve.js"
"start:webhook": "node webhook_serve.js",
"test": "start-test start:webhook 3000 test:group",
"test:group": "ls -d cypress/integration/** | xargs -t -I % sh -c '{ npx cypress run --spec=\"%/**/*\"; }'"
}
}
1 change: 1 addition & 0 deletions e2e/webhook_serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ server.use(bodyParser.urlencoded({extended: true}));

process.title = process.argv[2];

server.get('/', (req, res) => res.send('I\'m alive!\n'));
server.post('/message_menus', postMessageMenus);

server.listen(port, () => console.log(`Webhook test server listening on port ${port}!`)); // eslint-disable-line no-console
Expand Down

0 comments on commit a5da84a

Please sign in to comment.