From 90ff4a8987a184e17ee55a1f50b9a05741ba8883 Mon Sep 17 00:00:00 2001 From: Jose Puebla Date: Mon, 28 Dec 2020 19:18:26 -0500 Subject: [PATCH] TT-00 style: Add headless browser testing script --- README.md | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01de67fcb..20d4b9a73 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,9 @@ Run `ng build` to build the project. The build artifacts will be stored in the ` ## Running unit tests -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `npm run test` or `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). + +Run `npm run test-headless` or `ng test --browsers ChromeHeadless` to execute the unit tests via "Headless Browser". ## Running mutation tests Mutation tests have been enabled using stryker. You can run those tests locally, it takes ~4 hours to have the results. If you want to run them locally please install stryker locally: diff --git a/package.json b/package.json index 9d2efa203..9398c3a83 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "start": "ng serve", "build": "ng build", "test": "ng test", + "test-headless": "ng test --browsers ChromeHeadless", "ci-test": "ng test --no-watch --no-progress --browsers ChromeHeadless", "lint": "ng lint", "e2e": "ng e2e"