From 155ed83ee6e0bac46707b2994174631bb4fec6cf Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Tue, 22 Oct 2019 11:55:29 -0400 Subject: [PATCH 1/2] update docs to reflect changes to `testFiles` Content updates due ot changes in [PR](https://github.com/cypress-io/cypress/pull/5402) --- source/guides/references/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guides/references/configuration.md b/source/guides/references/configuration.md index 163602a4ca..34c29b06f4 100644 --- a/source/guides/references/configuration.md +++ b/source/guides/references/configuration.md @@ -25,7 +25,7 @@ Option | Default | Description `port` | `null` | Port used to host Cypress. Normally this is a randomly generated port `reporter` | `spec` | The {% url 'reporter' reporters %} used during `cypress run` `reporterOptions` | `null` | The {% url 'reporter options' reporters#Reporter-Options %} used. Supported options depend on the reporter. -`testFiles` | `**/*.*` | A String glob pattern of the test files to load +`testFiles` | `**/*.*` | A String or Array of glob patterns of the test files to load `watchForFileChanges` | `true` | Whether Cypress will watch and restart tests on test file changes ## Timeouts From 66b870d81384387e2e08dcde1771fc8381652c17 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Tue, 22 Oct 2019 11:55:48 -0400 Subject: [PATCH 2/2] examples of multi-value config properties via CLI --- source/guides/references/configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/guides/references/configuration.md b/source/guides/references/configuration.md index 34c29b06f4..353e539ba8 100644 --- a/source/guides/references/configuration.md +++ b/source/guides/references/configuration.md @@ -121,6 +121,10 @@ cypress run --config integrationFolder=tests,fixturesFolder=false cypress run --record --config viewportWidth=1280,viewportHeight=720 ``` +```shell +cypress open --config watchForFileChanges=false,testFiles=["**/*.js","**/*.coffee"] +``` + ## Plugins As of {% url `1.2.0` changelog#1-2-0 %} you can programmatically modify configuration values using Node code. This enables you to do things like use `fs` and read off configuration values and dynamically change them.