8 Commits

Author SHA1 Message Date
Jason Jean
4920d92f3a fix(nx): hacky fix 2019-05-29 11:57:54 -04:00
Jason Jean
9bbb69d40f refactor(frontend): refactor angular to @nrwl/angular 2019-04-18 15:25:06 -04:00
Jason Jean
debda15222 refactor(testing): separate cypress to @nrwl/cypress 2019-04-17 17:06:44 -04:00
Victor Savkin
03992c7de1 feat(nx): switch defaults to jest, cypress, and nest 2019-02-13 10:35:32 -05:00
Danielle Sheehan
9d01586adf fix(builders): copy fixture folder (#1053) 2019-02-04 18:13:15 -05:00
Jason Jean
d537476b0c enhancement(schematics): optimize formatting during codegen 2019-01-03 14:18:20 -05:00
Jason Jean
dfba24dc9b fix(builders): do not copy fixtures if not defined by cypress.json 2018-11-19 17:29:02 -05:00
ben
f38bda025b feat(schematics): add cypress e2e test runner
This is enables the use of Cypress as e2e test runner for a new
application in the Nx workspace.

The Cypress command is hidden as a flag in the main application
schematics. Meaning, the only thing needed to enable this feature is to
add the `--e2eTestRunner=cypress` flag at your command when creating
a new application.
Example:
```shell
$ ng generate application myApp --e2eTestRunner=cypress
```

By default `ng e2e my-app-e2e` will start Cypress in the application
mode. You will see the desktop application and will be able to check all
the tests and run them as you which.

If you want to run the Cypress tests in headless mode (while being on CI
for example), you can do so by passing the `--headless` to the command.
  You will see all the test results live in the terminal.
  ```shell
  $ ng e2e my-app-e2e --headless
  ```

The Cypress configuration files and folders are present in the new
`my-app-e2e` folder created. Every file are written in typescript and
will be compiled into the `/dist/apps/my-app-e2e` folder before starting
Cypress.

If you need to fine tunes the options of Cypress, you can do so by
modifying directly the `cypress.json` file in the related project.

The build steps are has follow:
• compile typescript files into javascript inside the
`/dist/app/my-app-e2e` folder
• build a dev server (using the default AngularCLI dev target build)
• run Cypress with the compiled e2e files

Screenshots and Videos will be accessible respectively in
`/dist/apps/homer-app-e2e/screenshots` and
`/dist/apps/homer-app-e2e/videos`.
2018-10-25 12:14:35 -04:00