Skip to content

Commit 2e0c523

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 2e0c523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ There are four kinds of tests:
4141

4242
`PYTHONPATH=contrib/pyln-client:contrib/pyln-testing:contrib/pyln-proto:contrib/pyln-grpc-proto py.test -v tests/`
4343

44-
Or alternatively, via the `Makefile`, by setting `PYTEST_TESTS`:
44+
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.
4545

46-
`PYTEST_TESTS="tests/test_askrene.py::test_layers" make pytest`
46+
Or alternatively, run a single test via the `Makefile`, by setting `PYTEST_TESTS`:
4747

48-
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.
48+
`PYTEST_TESTS="tests/test_askrene.py::test_layers" make pytest`
4949

5050
- **pylightning tests** - will check contrib pylightning for codestyle and run the tests in `contrib/pylightning/tests` afterwards:
5151

0 commit comments

Comments
 (0)