Created
December 30, 2017 19:51
-
-
Save Bunk/2bceaf4ec140086a70f41450ac4c77bc to your computer and use it in GitHub Desktop.
Testcafe w/ SauceLabs in Alpine Docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
exec npx testcafe "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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