Update the entrypoint script to allow you to do --tox and
--quick-tox in the same way as --test and --quick-test.
Update the readme appropriately.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
$ docker-compose run --rm web --test
+ * Tox tests can be run with `--quick-tox` and `--tox`.
+
* To reset the database before beginning, add `--reset` to the command line after `web` and before any other arguments.
* If you want to run non-headless tests, you'll need something like this ugly hack:
python3 manage.py test
elif [ "$1" == "--test" ]; then
xvfb-run --server-args='-screen 0, 1024x768x16' python3 manage.py test
+elif [ "$1" == "--quick-tox" ]; then
+ shift
+ export PW_SKIP_BROWSER_TESTS=yes
+ tox $@
+elif [ "$1" == "--tox" ]; then
+ shift
+ xvfb-run --server-args='-screen 0, 1024x768x16' tox $@
else # run whatever CMD is set to
$@
fi