Skip to content

Instantly share code, notes, and snippets.

@bastman
Last active November 25, 2019 17:55
Show Gist options
  • Save bastman/675a916a0eb24dbce9a01173fb1e255a to your computer and use it in GitHub Desktop.
Save bastman/675a916a0eb24dbce9a01173fb1e255a to your computer and use it in GitHub Desktop.
testcafe docker example
# clone the testcafe example repo
$ git clone [email protected]:DevExpress/testcafe.git
$ cd testcafe
# run docker headless
$ docker run --rm -it -v ${PWD}:/tests tomdesinto/testcafe:latest testcafe 'chromium:headless --no-sandbox' '/tests/examples/basic/test.js'
# run docker chrome
$ docker run --rm -it -v ${PWD}:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/examples/basic/test.js'
# run native
$ cd examples/basic
$ npm install
$ npm test
# typescript examples
$ git clone [email protected]:bjentsch/testcafe-typescript-example.git
$ cd testcafe-typescript-example
$ yarn install
$ npx testcafe chrome qdp.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment