Skip to content

Commit

Permalink
Add support for parallel cypress tests (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp authored Mar 18, 2023
1 parent 1a51537 commit cf25bb8
Show file tree
Hide file tree
Showing 5 changed files with 1,356 additions and 141 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dist_local/*

cypress/videos
cypress/screenshots
runner-results

src/tempcodes

Expand Down
8 changes: 4 additions & 4 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ function queryTestDb(query, config) {

module.exports = defineConfig({
numTestsKeptInMemory: 20,
defaultCommandTimeout: 20000,
defaultCommandTimeout: 30000,
e2e: {
setupNodeEvents(on, config) {
on('before:browser:launch', (browser = {}, launchOptions) => {

if (browser.name === 'chrome') {
launchOptions.args.push('--mute-audio');
}

return launchOptions;
});
on('task', { queryDb: query => { return queryTestDb(query, config) }, }); //For running sql query
},

baseUrl: 'http://localhost',
},
env: {
Expand Down
3 changes: 3 additions & 0 deletions multi-reporter-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reporterEnabled": "cypress-parallel/json-stream.reporter.js, cypress-parallel/simple-spec.reporter.js"
}
Loading

0 comments on commit cf25bb8

Please sign in to comment.