From 08cc0b1bf872661f9102eebbe15e836194366262 Mon Sep 17 00:00:00 2001 From: Ben Kucera Date: Thu, 7 Jun 2018 12:48:17 -0400 Subject: [PATCH] add quotes around --spec arg --- source/guides/guides/command-line.md | 6 +++--- source/guides/references/changelog.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/guides/guides/command-line.md b/source/guides/guides/command-line.md index 6563a4f2f3..84a89927f3 100644 --- a/source/guides/guides/command-line.md +++ b/source/guides/guides/command-line.md @@ -118,19 +118,19 @@ cypress run --reporter-options mochaFile=result.xml,toConsole=true ### Run tests specifying a single test file to run instead of all tests ```shell -cypress run --spec cypress/integration/app.spec.js +cypress run --spec 'cypress/integration/app.spec.js' ``` ### Run tests specifying a glob of where to look for test files ```shell -cypress run --spec cypress/integration/login/**/* +cypress run --spec 'cypress/integration/login/**/*' ## Note: quotes required ``` ### Run tests specifying multiple test files to run ```shell -cypress run --spec cypress/integration/filter.spec.js,cypress/integration/users.spec.js +cypress run --spec 'cypress/integration/filter.spec.js,cypress/integration/users.spec.js' ``` ### Run tests specifying a project diff --git a/source/guides/references/changelog.md b/source/guides/references/changelog.md index f6a05d6613..9368623b13 100644 --- a/source/guides/references/changelog.md +++ b/source/guides/references/changelog.md @@ -1512,7 +1512,7 @@ Fixed {% url "`.type()`" type %} not firing `input` event for {% url "React" htt **Bugfixes:** -- The `-s` or `--spec` option now works correctly. You now must pass a relative or absolute path to your spec file. This is much less confusing, allows you to easily autocomplete entries from bash, and will support `unitFolder` later when it's added. Assuming you want to run a spec file that is located in `cypress/integration/foo_spec.js` you would pass: `cypress run --spec cypress/integration/foo_spec.js`. Previously you could just pass `--spec foo_spec.js` which now no longer works (and was broken anyway). Fixes {% issue 120 '#120' %}. +- The `-s` or `--spec` option now works correctly. You now must pass a relative or absolute path to your spec file. This is much less confusing, allows you to easily autocomplete entries from bash, and will support `unitFolder` later when it's added. Assuming you want to run a spec file that is located in `cypress/integration/foo_spec.js` you would pass: `cypress run --spec 'cypress/integration/foo_spec.js'`. Previously you could just pass `--spec foo_spec.js` which now no longer works (and was broken anyway). Fixes {% issue 120 '#120' %}. **Misc:**