Merge 15563d3388 into merged_master (Bitcoin PR bitcoin/bitcoin#30859)

This commit is contained in:
ivanlele 2026-03-30 12:02:45 +00:00
commit eb16482213
No known key found for this signature in database
2 changed files with 19 additions and 1 deletions

View file

@ -53,6 +53,23 @@ Elements deferred for additional research and standardization:
Additional RPC commands and parameters:
* [RPC Docs](https://elementsproject.org/en/doc/)
Testing and code review is the bottleneck for development; we get more pull
requests than we can review and test on short notice. Please be patient and help out by testing
other people's pull requests, and remember this is a security-critical project where any mistake might cost people
lots of money.
### Automated Testing
Developers are strongly encouraged to write [unit tests](src/test/README.md) for new code, and to
submit new unit tests for old code. Unit tests can be compiled and run
(assuming they weren't disabled during the generation of the build system) with: `ctest`. Further details on running
and extending unit tests can be found in [/src/test/README.md](/src/test/README.md).
There are also [regression and integration tests](/test), written
in Python.
These tests can be run (if the [test dependencies](/test) are installed) with: `build/test/functional/test_runner.py`
(assuming `build` is your build directory).
The CI (Continuous Integration) systems make sure that every pull request is built for Windows, Linux, and macOS,
and that unit/sanity tests are run automatically.

View file

@ -10,7 +10,8 @@ that file and modify to fit your needs.
#### Coverage
Running `test/functional/test_runner.py` with the `--coverage` argument tracks which RPCs are
Assuming the build directory is `build`,
running `build/test/functional/test_runner.py` with the `--coverage` argument tracks which RPCs are
called by the tests and prints a report of uncovered RPCs in the summary. This
can be used (along with the `--extended` argument) to find out which RPCs we
don't have test cases for.