File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ lots of money.
49
49
### Automated Testing
50
50
51
51
Developers are strongly encouraged to write unit tests for new code, and to
52
- submit new unit tests for old code. Unit tests can be compiled and run (assuming they weren't disabled in configure) with: ` make check `
52
+ submit new unit tests for old code. Unit tests can be compiled and run
53
+ (assuming they weren't disabled in configure) with: ` make check `
53
54
54
- There are also regression and integration tests of the RPC interface, written
55
+ There are also [ regression and integration tests] ( /qa ) of the RPC interface, written
55
56
in Python, that are run automatically on the build server.
56
57
These tests can be run with: ` qa/pull-tester/rpc-tests.py `
57
58
Original file line number Diff line number Diff line change 1
- Notes
2
- =====
1
+ The [ pull-tester] ( /qa/pull-tester/ ) folder contains a script to call
2
+ multiple tests from the [ rpc-tests] ( /qa/rpc-tests/ ) folder.
3
+
4
+ Every pull request to the bitcoin repository is built and run through
5
+ the regression test suite. You can also run all or only individual
6
+ tests locally.
7
+
8
+ Running tests
9
+ =============
3
10
4
11
You can run any single test by calling ` qa/pull-tester/rpc-tests.py <testname> ` .
5
12
@@ -23,7 +30,8 @@ Possible options:
23
30
Write tested RPC commands into this directory
24
31
```
25
32
26
- If you set the environment variable ` PYTHON_DEBUG=1 ` you will get some debug output (example: ` PYTHON_DEBUG=1 qa/pull-tester/rpc-tests.py wallet ` ).
33
+ If you set the environment variable ` PYTHON_DEBUG=1 ` you will get some debug
34
+ output (example: ` PYTHON_DEBUG=1 qa/pull-tester/rpc-tests.py wallet ` ).
27
35
28
36
A 200-block -regtest blockchain and wallets for four nodes
29
37
is created the first time a regression test is run and
@@ -42,5 +50,8 @@ rm -rf cache
42
50
killall bitcoind
43
51
```
44
52
53
+ Writing tests
54
+ =============
55
+ You are encouraged to write tests for new or existing features.
45
56
Further information about the test framework and individual rpc
46
- tests is found in [ qa/rpc-tests/README.md ] ( /qa/rpc-tests/README.md ) .
57
+ tests is found in [ qa/rpc-tests] ( /qa/rpc-tests ) .
You can’t perform that action at this time.
0 commit comments