-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
27 lines (22 loc) · 781 Bytes
/
cypress.config.js
File metadata and controls
27 lines (22 loc) · 781 Bytes
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');
const glob = require('glob');
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
require('@cypress/grep/src/plugin')(on, config);
// Retrieve the spec pattern from the Cypress config
const specPattern = config.specPattern || 'cypress/e2e/**/*.spec.{js,ts}';
// Get matching test files using glob
const testPaths = glob.sync(specPattern);
// Log the test paths being run
console.log(`Running tests for paths: ${testPaths.join(', ')}`);
return config;
},
env: {
testCredentials: process.env.TEST_CREDENTIALS,
gkeServiceAccount: process.env.GKE,
grepFilterSpecs: true,
grepOmitFiltered: true
}
}
});