Giter Site home page Giter Site logo

thomasleveil / docker-testcafe Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 5.0 4 KB

docker image to run TestCafé. Includes Chromium & Firefox + TestCafé framework specific selectors

Home Page: https://hub.docker.com/r/tomdesinto/testcafe/

Shell 16.80% JavaScript 83.20%
docker-image docker testcafe testcafe-angular-selectors testcafe-vue-selectors testcafe-aurelia-selectors testcafe-react-selectors test e2e-testing vuejs

docker-testcafe's Introduction

TestCafé Docker image

Docker image to run TestCafé. Includes:

Usage

Running tests with Firefox:

docker run --rm -it -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe firefox '/tests/*.test.js'

Running tests with Chromium:

docker run --rm -it -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'

Limitations

Containers created from this image are meant to be used one time and then removed. Issues arise if you try to run the testcafe command multiple times in the same container.

Building the docker image

git clone https://github.com/thomasleveil/docker-testcafe.git
cd docker-testcafe
docker build -t tomdesinto/testcafe .

docker-testcafe's People

Contributors

thomasleveil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-testcafe's Issues

BitBucket docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories.

Hello @thomasleveil,
I'm trying to run this in BitBucket pipelines, using the following bitbucket-pipelines.yml script:

image: tomdesinto/testcafe
pipelines:
  default:
    - step:
        name: Run tests
        deployment: test 
        script:
          - pwd
          - ls -al
          - docker build -t tomdesinto/testcafe .
          - docker run --rm -i -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'
        services:
          - docker

But on the docker run step this error is thrown:

+ docker run --rm -i -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'
docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories.

I tried removing the -v (Bind mount a volume) reference but that also throws an error; docker: invalid reference format.

How can I overcome this?

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.