From 4d2e8a14f9a3309eb3d95382a7887e366ea598b7 Mon Sep 17 00:00:00 2001 From: Josh Smith <joshsmith@codethink.co.uk> Date: Thu, 2 Aug 2018 10:06:16 +0100 Subject: [PATCH] HACKING.rst: Add running a single test example --- HACKING.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HACKING.rst b/HACKING.rst index 67797d6eb8..78419a69bb 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -470,6 +470,11 @@ the frontend tests you can do:: ./setup.py test --addopts '-k tests/frontend/' +Specific tests can be chosen by using the :: delimeter after the test module. +If you wanted to run the test_build_track test within frontend/buildtrack.py you could do:: + + ./setup.py test --adopts '-k tests/frontend/buildtrack.py::test_build_track' + We also have a set of slow integration tests that are disabled by default - you will notice most of them marked with SKIP in the pytest output. To run them, you can use:: -- GitLab