Skip to content

Commit 62227a6

Browse files
committed
TT-00 style: Add headless browser testing script
1 parent d23967c commit 62227a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ Run `ng build` to build the project. The build artifacts will be stored in the `
8181

8282
## Running unit tests
8383

84-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
84+
Run `npm run test` or `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
85+
86+
Run `npm run test-headless` or `ng test --browsers ChromeHeadless` to execute the unit tests via "Headless Browser".
8587

8688
## Running mutation tests
8789
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:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"start": "ng serve",
88
"build": "ng build",
99
"test": "ng test",
10+
"test-headless": "ng test --browsers ChromeHeadless",
1011
"ci-test": "ng test --no-watch --no-progress --browsers ChromeHeadless",
1112
"lint": "ng lint",
1213
"e2e": "ng e2e"

0 commit comments

Comments
 (0)