-
Notifications
You must be signed in to change notification settings - Fork 29
/
cypress.config.js
41 lines (40 loc) · 1.45 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const { defineConfig } = require('cypress');
const allureWriter = require('@shelex/cypress-allure-plugin/writer');
const webpack = require('@cypress/webpack-preprocessor');
const {
addCucumberPreprocessorPlugin
} = require('@badeball/cypress-cucumber-preprocessor');
module.exports = defineConfig({
env: {
issuePrefix: 'https://your.domain.atlassian.net/browse/',
tmsPrefix: 'https://some.testrail.instance/path/suite/caseID-'
},
e2e: {
setupNodeEvents: async function (on, config) {
await addCucumberPreprocessorPlugin(on, config);
on(
'file:preprocessor',
webpack({
webpackOptions: {
resolve: { extensions: ['.ts', '.js'] },
module: {
rules: [
{
test: /\.feature$/,
use: [
{
loader: '@badeball/cypress-cucumber-preprocessor/webpack',
options: config
}
]
}
]
}
}
})
);
allureWriter(on, config);
return config;
}
}
});