From 2d74c25ca3f7dd124f3a9d766da1357cd87a3555 Mon Sep 17 00:00:00 2001 From: Varac Date: Thu, 20 Jul 2017 15:14:39 +0200 Subject: [doc] Tests inside docker with gitlab-runner --- tests/functional/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/functional/README.md b/tests/functional/README.md index 9405d8e0..652de1ca 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. -- cgit v1.2.3