-
Notifications
You must be signed in to change notification settings - Fork 1
/
cypress.config.js
27 lines (25 loc) · 949 Bytes
/
cypress.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { defineConfig } = require('cypress')
module.exports = defineConfig({
fixturesFolder: 'fixtures',
screenshotsFolder: './report/',
e2e: {
experimentalOriginDependencies: true,
reporter: 'cypress-xray-junit-reporter',
reporterOptions: {
mochaFile: './report/[suiteName].xml',
useFullSuiteTitle: false,
jenkinsMode: true,
xrayMode: true, // if JiraKey are set correctly inside the test the XML report will contain the JiraKey value
attachScreenshot: true, // if a test fails, the screenshot will be attached to the XML report and imported into xray
},
setupNodeEvents (on, config) {
require('cypress-xray-junit-reporter/plugin')(on, config, {})
//require('./plugins')(on, config)
return config
},
baseUrl: 'https://qualityshepherd.com/',
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'support',
defaultCommandTimeout: 10000
}
})