You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,29 @@ The browser can also be specified with `npm test` commmand like below:
71
71
"coverage": "ng t --no-watch --code-coverage --reporters=junit,coverage-istanbul --browsers=EdgeHeadless --progress=false"
72
72
```
73
73
74
+
## Running from Linux Docker
75
+
76
+
For running in docker, you may get error like below:
77
+
78
+
"Edge Headless stderr: [0116/032919.925976:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180."
79
+
80
+
Then you need to run it as non-root user or disable sandbox. Please read [sandbox design](https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md) before disabling it.
81
+
82
+
This can be done using custom launcher in `karma.conf.js` using Edge launcher as base and adding extra flags as desired.
83
+
84
+
For example, for angular app, add below in `karma.conf.js`:
85
+
86
+
```js
87
+
customLaunchers: {
88
+
EdgeHeadlessCI: {
89
+
base:"EdgeHeadless",
90
+
flags: ["--no-sandbox"],
91
+
},
92
+
},
93
+
```
94
+
95
+
and in `package.json` use it like: `"test:edge": "ng test --no-watch --browsers=EdgeHeadlessCI"`
96
+
74
97
## Build from Source
75
98
76
99
In case if you want to build package from github source
0 commit comments