diff options
author | Varac <varac@leap.se> | 2017-07-20 15:14:39 +0200 |
---|---|---|
committer | Varac <varac@leap.se> | 2017-07-20 15:14:39 +0200 |
commit | 2d74c25ca3f7dd124f3a9d766da1357cd87a3555 (patch) | |
tree | 81cc966db6a814f1aa71b0f5f17fa45eb489b4f6 /tests | |
parent | 058b225758e3107f551cfdac348c2f1266d89b79 (diff) |
[doc] Tests inside docker with gitlab-runner
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/README.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/functional/README.md b/tests/functional/README.md index 9405d8e..652de1c 100644 --- a/tests/functional/README.md +++ b/tests/functional/README.md @@ -20,7 +20,7 @@ Setup your virtualenv and python packages: virtualenv venv-all source ./venv-all/bin/activate - make dev-all + make dev-latest-all make test_functional_setup ## Run tests @@ -29,6 +29,18 @@ Setup your virtualenv and python packages: export TEST_USERNAME='user@provider.tld' TEST_PASSWORD='...' make test_functional +## Run tests inside docker with gitlab-runner + +Install Docker and [gitlab-runner](https://docs.gitlab.com/runner/). +Run the `functional_tests` job: + + gitlab-runner exec docker \ + --docker-volumes /tmp/bitmask-test/artifacts:/tmp/bitmask-test/artifacts \ + --env TEST_USERNAME='...' --env TEST_PASSWORD='...'\ + functional_tests + +In case of failing tests the resulting artifacts (screenshot, `.config` folder) will be available at `/tmp/bitmask-test/artifacts` on the host. + # Develop tests When tests are run using `make test_functional` no window shows you what the browser sees. |