@nrwl/cypress:cypress
Cypress target option for Build Facade.
Options can be configured in project.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Options
baseUrl
The address (with the port) which your application is running on.
browser
The browser to run tests in.
cypressConfig
The path of the Cypress configuration json file.
copyFiles
A regex string that is used to choose what additional integration files to copy to the dist folder.
ciBuildId
A unique identifier for a run to enable grouping or parallelization.
devServerTarget
Dev server target to run tests against.
exit
true
Whether or not the Cypress Test Runner will stay open after running tests in a spec file.
group
A named group for recorded runs in the Cypress dashboard.
headed
false
Displays the browser instead of running headlessly. Set this to true
if your run depends on a Chrome extension being loaded.
headless
false
Hide the browser instead of running headed (default for cypress run).
ignoreTestFiles
A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: {dot: true, matchBase: true}
. We suggest using https://globster.xyz to test what files would match.
key
The key cypress should use to run tests in parallel/record the run (CI only).
parallel
false
Whether or not Cypress should run its tests in parallel (CI only).
record
false
Whether or not Cypress should record the results of the tests.
reporter
The reporter used during cypress run.
reporterOptions
The reporter options used. Supported options depend on the reporter.
spec
A comma delimited glob string that is provided to the Cypress runner to specify which spec files to run. i.e. **examples/**,**actions.spec**
.
skipServe
false
Skip dev-server build.
tsConfig
The path of the Cypress tsconfig configuration json file.
testingType
e2e
component
, e2e
Specify the type of tests to execute.
tag
A comma delimited list to identify a run with.
watch
false
Recompile and run tests when files change.
Additional Properties
Extra properties of any type may be provided to this object.