Sunday, 23 April 2017

How to do e2e test for nodejs app using nightwatch

I am building a docker container with a nodejs application, which will be build from meteorJS. Now I would like to do an e2e test for this application with nightwatchJS

This is how my yml file looks like:

build:
  stage: build
  tags:
    - deploy
  before_script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - meteor npm install
    - meteor build /opt/project/build/core --directory
  script:
    - cd /opt/project/build/core/bundle
    - docker build -t $CI_REGISTRY_IMAGE:latest .

But how do I use nightwatchJS with this image?

Do I have to create a new docker image with nightwatch, selenium, chromedriver and phantomjs?



via user3142695

No comments:

Post a Comment