nx/docs/api-builders/cypress.md
ben a84d6715a4 feat(builders): support Cypress exit option
Support the `exit` option to keep (or not), Cypress open after all tests run.

resolve #1119
2019-03-11 11:05:29 -04:00

990 B

cypress

Run Cypress e2e tests

Properties

cypressConfig

Type: string

The path of the Cypress configuration json file.

watch

Default: false

Type: boolean

Recompile and run tests when files change.

tsConfig

Type: string

The path of the Cypress tsconfig configuration json file.

devServerTarget

Type: string

Dev server target to run tests against.

headless

Default: false

Type: boolean

Whether or not to open the Cypress application to run the tests. If set to 'true', will run in headless mode

exit

Default: true

Type: boolean

Whether or not the Cypress Test Runner will stay open after running tests in a spec file

record

Default: false

Type: boolean

Whether or not Cypress should record the results of the tests

baseUrl

Type: string

Use this to pass directly the address of your distant server address with the port running your application

browser

Type: string

The browser to run tests in.