Skip to content

afnecors/docker-ng-cli-e2e

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 

Repository files navigation

docker-ng-cli-e2e

Run Angular end-to-end tests inside docker container using Google Chrome / chromium. Works great on CI servers.

Example usage

docker run -u $(id -u) --rm -v "$PWD":/app trion/ng-cli-e2e ng e2e

Locking the ChromeDriver version

Angular CLI usese webdriver for protractor tests. The npm package to install/update webdriver checks every hour if a new version is available and updates to the latest version. This might break your build if webdriver requires a later version of the Chrome browser. (See https://github.com/angular/webdriver-manager/blob/HEAD/docs/versions.md ) The solution is to run an update to a fixed version just before the actual build happens. This will prevent installation of a later version.

For example:

docker ... trion/ng-cli-e2e:6.0.8 \
    ./node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager update --versions.chrome 2.41 && \
    ng e2e --webdriver-update=false

About

Angular end2end tests inside docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dockerfile 100.0%