Skip to content

Commit

Permalink
Merge pull request #1 from raultifrea/cypress-split
Browse files Browse the repository at this point in the history
Cypress split
  • Loading branch information
raultifrea authored Jan 8, 2024
2 parents 7b77d24 + cdfbe21 commit 963bead
Show file tree
Hide file tree
Showing 4 changed files with 2,505 additions and 74 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/allTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ jobs:
- name: Run Tests
uses: cypress-io/github-action@v6
with:
record: true
parallel: true
browser: chrome
group: 'e2e-tests'
spec: 'cypress/e2e/**/*' # Run all tests. Same as empty string ''
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_RU: ${{ github.event.inputs.ru }}
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
# CYPRESS_BASE_URL: '' # Fil in new baseUrl with https prefix

- name: Prepare report
Expand Down
7 changes: 5 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'cypress'
import cypressSplit from 'cypress-split'

export default defineConfig({
chromeWebSecurity: false,
Expand All @@ -16,21 +17,23 @@ export default defineConfig({
webdriveruni_homepage: 'https://webdriveruniversity.com',
first_name: 'raul',
},
projectId: '7yjoqm',
// projectId: '7yjoqm',
experimentalStudio: true,
reporter: "cypress-mochawesome-reporter",
reporterOptions: {
},
e2e: {
setupNodeEvents(on, config) {
cypressSplit(on, config)
require('cypress-mochawesome-reporter/plugin')(on)
require("./cypress/plugins/index.js")(on, config)
on('task', {
log(args) {
console.log(...args);
return null;
},
});
return require("./cypress/plugins/index.js")(on, config)
return config

},
baseUrl: "https://webdriveruniversity.com",
Expand Down
Loading

0 comments on commit 963bead

Please sign in to comment.