-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reworked config files to be clearer fixed typo in reporterOptions added generate:pdf script to package.json moved folder creation
- Loading branch information
1 parent
920717b
commit cf20766
Showing
10 changed files
with
50 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
import { defineConfig } from 'cypress' | ||
import setupNodeEvents from './plugins/index.js' | ||
import { defineConfig } from 'cypress'; | ||
import baseConfig from './cypress.config'; | ||
|
||
export default defineConfig({ | ||
//projectId: '[Your project ID from Cypress cloud]', | ||
reporter: 'cypress-multi-reporters', | ||
...baseConfig, | ||
reporterOptions: { | ||
reporterEnabled: 'mochawesome,./reporters/custom-reporter.js', | ||
...baseConfig.reporterOptions, | ||
mochawesomeReporterOptions: { | ||
reportDir: 'build/test-results/mochawesome', | ||
...baseConfig.reporterOptions.mochawesomeReporterOptions, | ||
reportFilename: 'acceptance-mochawesome', | ||
charts: true, | ||
html: true, | ||
timestamp: true, | ||
json: true | ||
}, | ||
reportersCustomReporterJsReporterOptions: { | ||
...baseConfig.reporterOptions.reportersCustomReporterJsReporterOptions, | ||
mochaFile: 'build/test-results/acceptance-junit-[hash].xml', | ||
toConsole: true, | ||
}, | ||
}, | ||
e2e: { | ||
baseUrl: process.env.CYPRESS_BASE_URL, | ||
fixturesFolder: "fixtures", | ||
specPattern: 'tests/acceptance/*.cy.ts', | ||
supportFile: "support/e2e.ts", | ||
screenshotsFolder: 'build/test-results/screenshots', | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
experimentalModifyObstructiveThirdPartyCode:true, | ||
video: true, | ||
async setupNodeEvents(on, config) { | ||
return (await import('./plugins/index')).default(on, config); | ||
}, | ||
...baseConfig.e2e, | ||
specPattern: 'tests/acceptance/**/*.cy.ts', | ||
}, | ||
// env: { | ||
// otp_secret: process.env.OTP_SECRET | ||
// }, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
import { defineConfig } from 'cypress' | ||
import setupNodeEvents from './plugins/index.js' | ||
import { defineConfig } from 'cypress'; | ||
import baseConfig from './cypress.config'; | ||
|
||
export default defineConfig({ | ||
//projectId: '[Your project ID from Cypress cloud]', | ||
reporter: 'cypress-multi-reporters', | ||
...baseConfig, | ||
reporterOptions: { | ||
reporterEnabled: 'mochawesome,./reporters/custom-reporter.js', | ||
...baseConfig.reporterOptions, | ||
mochawesomeReporterOptions: { | ||
reportDir: 'build/test-results/mochawesome', | ||
...baseConfig.reporterOptions.mochawesomeReporterOptions, | ||
reportFilename: 'installation-mochawesome', | ||
charts: true, | ||
html: true, | ||
timestamp: true, | ||
json: true | ||
}, | ||
reportersCustomReporterJsReporterOptions: { | ||
...baseConfig.reporterOptions.reportersCustomReporterJsReporterOptions, | ||
mochaFile: 'build/test-results/installation-junit-[hash].xml', | ||
toConsole: true, | ||
}, | ||
}, | ||
e2e: { | ||
baseUrl: process.env.CYPRESS_BASE_URL, | ||
fixturesFolder: "fixtures", | ||
specPattern: 'tests/installation/*.cy.ts', | ||
supportFile: "support/e2e.ts", | ||
screenshotsFolder: 'build/test-results/screenshots', | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
experimentalModifyObstructiveThirdPartyCode:true, | ||
video: true, | ||
async setupNodeEvents(on, config) { | ||
return (await import('./plugins/index')).default(on, config); | ||
}, | ||
...baseConfig.e2e, | ||
specPattern: 'tests/installation/**/*.cy.ts', | ||
}, | ||
// env: { | ||
// otp_secret: process.env.OTP_SECRET | ||
// }, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
import { defineConfig } from 'cypress' | ||
import setupNodeEvents from './plugins/index.js' | ||
import { defineConfig } from 'cypress'; | ||
import baseConfig from './cypress.config'; | ||
|
||
export default defineConfig({ | ||
//projectId: '[Your project ID from Cypress cloud]', | ||
reporter: 'cypress-multi-reporters', | ||
...baseConfig, | ||
reporterOptions: { | ||
reporterEnabled: 'mochawesome,./reporters/custom-reporter.js', | ||
cypressMochawesomeReporterReporterOptions: { | ||
reportDir: 'build/test-results/mochawesome', | ||
...baseConfig.reporterOptions, | ||
mochawesomeReporterOptions: { | ||
...baseConfig.reporterOptions.mochawesomeReporterOptions, | ||
reportFilename: 'integration-mochawesome', | ||
charts: true, | ||
html: true, | ||
timestamp: true, | ||
json: true | ||
}, | ||
reportersCustomReporterJsReporterOptions: { | ||
...baseConfig.reporterOptions.reportersCustomReporterJsReporterOptions, | ||
mochaFile: 'build/test-results/integration-junit-[hash].xml', | ||
toConsole: true, | ||
}, | ||
}, | ||
e2e: { | ||
baseUrl: process.env.CYPRESS_BASE_URL, | ||
fixturesFolder: "fixtures", | ||
specPattern: 'tests/integration/*.cy.ts', | ||
supportFile: "support/e2e.ts", | ||
screenshotsFolder: 'build/test-results/screenshots', | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
experimentalModifyObstructiveThirdPartyCode:true, | ||
video: true, | ||
async setupNodeEvents(on, config) { | ||
return (await import('./plugins/index')).default(on, config); | ||
}, | ||
...baseConfig.e2e, | ||
specPattern: 'tests/integration/**/*.cy.ts', | ||
}, | ||
// env: { | ||
// otp_secret: process.env.OTP_SECRET | ||
// }, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters