From 1892968e1041b44ab3a6f2b8b858de9cc0f10d19 Mon Sep 17 00:00:00 2001 From: Shubhank Saxena Date: Wed, 22 Apr 2020 20:45:44 +0530 Subject: [PATCH] Document Tox as a requirement for running tests (#6338) --- .gitignore | 3 +++ docs/testing.md | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 591e8cee6..1523f7251 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ celerybeat-schedule coverage coverage.xml .coverage + +# Ignore tox installation +.tox \ No newline at end of file diff --git a/docs/testing.md b/docs/testing.md index 12c5afbe0..40f7d4bd7 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -60,7 +60,8 @@ The tests will perform an initial run and then re-execute each time a project fi To run all Python tests, including linting, sorting, etc: ```shell -docker-compose run backend sh -c "./runchecks.sh && pytest tests/" +% pip install tox +% tox ``` NOTE: For instructions on how to run tests outside of Docker look at [tests/README.md](https://github.com/mozilla/treeherder/blob/master/tests/README.md).