From daab927fbd30e66b198da4a6ae1619feaef0ff33 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Tue, 21 Mar 2017 12:09:32 -0500 Subject: [PATCH] chore(readme): update readme for e2e tests with concurrency and dev flags --- scripts/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/README.md b/scripts/README.md index 6f861e955e..45466c2e8d 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -96,11 +96,16 @@ To remove the linked version of `ionic-angular` do `npm rm ionic-angular`, and t - `gulp snapshot` will run the `gulp e2e.prod` task with AoT compilation. - `gulp snapshot.skipBuild` will skip the `gulp e2e.prod` task with AoT compilation. +- `gulp e2e.prod` followed by `gulp snapshot.skipBuild` is considered best practice #### Flags - `--f | -folder` will run the command with a test folder. For example, `gulp snapshot --f=action-sheet/basic` will run snapshot for the test at `src/components/action-sheet/test/basic`. +- `--concurrency` determines the number of tests to build at a time. By default, 2 tests are built concurrently. If using a quad-core (or more) CPU, it is often beneficial to run with `--concurrency 8` for example. + +- `--dev` runs a dev build when building the e2e tests. This build takes much less time than a production build, so it is advisable to use this when doing quick validation. + ### Running Tests 1. `gulp validate`