generated from mmisty/cypress-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
cypress.config.ts
52 lines (47 loc) · 1.71 KB
/
cypress.config.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { defineConfig } from 'cypress';
import { setupPlugins } from './integration/plugins';
const cypressFolder = 'integration';
export const commonConfig: Cypress.ConfigOptions = {
e2e: {
specPattern: `${cypressFolder}/e2e/**/*.(cy|test|spec).(j|t)s`,
supportFile: `${cypressFolder}/support/index.ts`,
downloadsFolder: `${cypressFolder}/downloads`,
videosFolder: `${cypressFolder}/videos`,
fixturesFolder: `${cypressFolder}/fixtures`,
screenshotsFolder: `${cypressFolder}/screenshots`,
trashAssetsBeforeRuns: true,
video: true,
chromeWebSecurity: false,
reporter: 'junit',
reporterOptions: {
mochaFile: './reports/cypress/[hash].xml',
toConsole: false,
},
env: {
REDIRECT_BROWSER_LOG: true,
allure: 'true',
allureCleanResults: 'true',
allureAttachRequests: true,
allureCompactAttachments: 'false',
allureResults: 'allure-results', // for test results to write
allureResultsWatchPath: 'allure-results/watch',
allureSkipCommands: '', // separated comma
// allureSkipSteps: '"after each" hook*,"before each" hook*,"before all" hook', // separated comma
allureAddVideoOnPass: 'true',
allureShowDuplicateWarn: 'true',
allureShowTagsInTitle: false,
allureAddNonSpecialTags: 'true',
// allureWrapCustomCommands: '!qaId,!cust',
// allureWrapCustomCommands: 'qaId,cust',
// allureLogCyCommands: 'false',
// allureAddBodiesToRequests: '**/hello,**',
tmsPrefix: 'http://jira',
issuePrefix: 'http://jira/*',
},
async setupNodeEvents(on, config) {
await setupPlugins(on, config);
return config;
},
},
};
export default defineConfig(commonConfig);