Skip to content

Commit 94cbd2e

Browse files
committed
doc: Include documentation for test targeting via PYTEST_TESTS.
Also update the table of optional environment variables to set when running the integration tests.
1 parent 951d07e commit 94cbd2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/contribute-to-core-lightning/testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ There are four kinds of tests:
4747

4848
You can also append `-k TESTNAME` to run a single test. Environment variables `DEBUG_SUBD=<subdaemon>` and `TIMEOUT=<seconds>` can be useful for debugging subdaemons on individual tests, and `DEBUG_LIGHTNINGD` for attaching a debugger to each `lightningd` instance created.
4949

50+
Or alternatively, run a single test via the `Makefile`, by setting `PYTEST_TESTS`:
51+
52+
`PYTEST_TESTS="tests/test_askrene.py::test_layers" make pytest`
53+
5054
- **pylightning tests** - will check contrib pylightning for codestyle and run the tests in `contrib/pylightning/tests` afterwards:
5155

5256
`make check-python`

0 commit comments

Comments
 (0)