Skip to content

Commit

Permalink
[DEVX-1634] Add funtion to exclude testfiles (#181)
Browse files Browse the repository at this point in the history
* [DEVX-1634] Add funtion to exclude testfiles

* refine config

* fix test

* update according to comments

* empty
  • Loading branch information
tianfeng92 authored Apr 18, 2022
1 parent 6430b85 commit b3a2200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cypress-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const getCypressOpts = function (runCfg, suiteName) {
headless: !headed,
config: {
testFiles: suite.config.testFiles,
ignoreTestFiles: suite.config.ignoreTestFiles || [],
videosFolder: runCfg.resultsDir,
screenshotsFolder: runCfg.resultsDir,
video: shouldRecordVideo(),
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/src/__snapshots__/cypress-runner.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Array [
"env": Object {
"HELLO": "WORLD",
},
"ignoreTestFiles": Array [],
"reporter": "MultiReporters.js",
"reporterOptions": Object {
"configFile": "sauce-reporter-config.json",
Expand Down Expand Up @@ -90,6 +91,7 @@ Array [
"env": Object {
"HELLO": "WORLD",
},
"ignoreTestFiles": Array [],
"reporter": "MultiReporters.js",
"reporterOptions": Object {
"configFile": "sauce-reporter-config.json",
Expand Down

0 comments on commit b3a2200

Please sign in to comment.