- Angular 6 for Enterprise:Ready Web Applications
- Doguhan Uluca
- 96字
- 2021-06-25 21:20:37
e2e test execution
You may execute the e2e tests with the following command in the terminal; ensure that the npm test process is not running:
$ npm run e2e
You will note that the test execution is different as compared to unit tests. While you can configure a watcher to continually execute unit tests with Karma, due to the user-driven and stateful nature of e2e tests, it is not a good practice to attempt a similar configuration with e2e tests. Running the tests once and stopping the test harness ensures a clean state with every run.