Skip to content

Instantly share code, notes, and snippets.

@Bunk
Created December 30, 2017 19:51
Show Gist options
  • Save Bunk/2bceaf4ec140086a70f41450ac4c77bc to your computer and use it in GitHub Desktop.
Save Bunk/2bceaf4ec140086a70f41450ac4c77bc to your computer and use it in GitHub Desktop.
Testcafe w/ SauceLabs in Alpine Docker container
FROM node:alpine
WORKDIR /app
RUN npm init --y && \
npm install testcafe testcafe-browser-provider-saucelabs
COPY tests/ tests/
COPY entrypoint.sh /usr/local/bin/entrypoint
ENTRYPOINT [ "entrypoint" ]
#!/bin/sh
set -e
exec npx testcafe "$@"
fixture(`Tests`)
test('Reality is real', async t => {
await t.expect(true).eql(true)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment