find-cypress-specs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
- package/src/index.js +3 -2
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> Find Cypress spec files using the config settings
|
|
4
4
|
|
|
5
|
+
```bash
|
|
6
|
+
$ npx find-cypress-specs
|
|
7
|
+
# prints all spec files separated by a comma
|
|
8
|
+
cypress/e2e/spec.js,cypress/e2e/featureA/user.js
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Details
|
|
12
|
+
|
|
5
13
|
Cypress uses the resolved [configuration values](https://on.cypress.io/configuration) to find the spec files to run. It searches the `integrationFolder` for all patterns listed in `testFiles` and removes any files matching the `ignoreTestFiles` patterns.
|
|
6
14
|
|
|
7
15
|
You can see how Cypress finds the specs using `DEBUG=cypress:cli,cypress:server:specs` environment variable to see verbose logs.
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -25,8 +25,9 @@ function findCypressSpecs(opts = {}) {
|
|
|
25
25
|
ignoreTestFiles: [],
|
|
26
26
|
}
|
|
27
27
|
const options = {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
integrationFolder: opts.integrationFolder || defaults.integrationFolder,
|
|
29
|
+
testFiles: opts.testFiles || defaults.testFiles,
|
|
30
|
+
ignoreTestFiles: opts.ignoreTestFiles || defaults.ignoreTestFiles,
|
|
30
31
|
}
|
|
31
32
|
debug('options %o', options)
|
|
32
33
|
|