Git Product home page Git Product logo

docker-angular-test-suite's Introduction

Docker Angular test suite

Docker image to test (unit and e2e) angular appliaction with Chrome and Firefox

Download Foirefox

https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=fr

Build

docker build -t angular-test-suite .

Run in container

docker run --rm -it --entrypoint=bash angular-test-suite

docker run --rm -it --entrypoint="protractor /protractor.conf.js" angular-test-suite

Chrome Headless

docker run --rm -it angular-test-suite chromium --headless --disable-gpu --dump-dom --no-sandbox https://google.com/

Run tests

Run app first

ng serve --host 0.0.0.0

Launch e2e tests

docker run --rm -it angular-test-suite protractor protractor.conf.js --baseUrl=http://192.168.1.21:4200/

Launch unit tests

docker run --rm -it angular-test-suite karma start karma.conf.js

Launch lint

docker run --rm -it angular-test-suite ng lint

Use custom volumes

docker run --rm -it \
    -v $(pwd)/app/:/opt/app/ \
    angular-test-suite \
    protractor protractor.conf.js --baseUrl=http://192.168.1.21:4200/
docker run --rm -it \
    -v $(pwd)/app/protractor.conf.js:/opt/app/protractor.conf.js \
    angular-test-suite \
    protractor protractor.conf.js --baseUrl=http://192.168.1.21:4200/
docker run --rm -it \
    -v $(pwd)/app/:/opt/app/ \
    angular-test-suite \
    karma start karma.conf.js
docker run --rm -it \
    -v $(pwd)/app/karma.conf.js:/opt/app/karma.conf.js \
    angular-test-suite \
    karma start karma.conf.js    

docker-angular-test-suite's People

Watchers

James Cloos avatar Geoffroy Vergne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.