44
55#### Example test
66
7- The [ example_test.py] ( example_test.py ) is a heavily commented example of a test case that uses both
8- the RPC and P2P interfaces. If you are writing your first test, copy that file
9- and modify to fit your needs.
7+ The file [ test/functional/ example_test.py] ( example_test.py ) is a heavily commented example
8+ of a test case that uses both the RPC and P2P interfaces. If you are writing your first test, copy
9+ that file and modify to fit your needs.
1010
1111#### Coverage
1212
13- Running ` test_runner.py ` with the ` --coverage ` argument tracks which RPCs are
13+ Running ` test/functional/ test_runner.py` with the ` --coverage ` argument tracks which RPCs are
1414called by the tests and prints a report of uncovered RPCs in the summary. This
1515can be used (along with the ` --extended ` argument) to find out which RPCs we
1616don't have test cases for.
@@ -82,7 +82,7 @@ P2P messages. These can be found in the following source files:
8282
8383#### Using the P2P interface
8484
85- - ` messages.py ` contains all the definitions for objects that pass
85+ - [ messages.py] ( test_framework/messages.py ) contains all the definitions for objects that pass
8686over the network (` CBlock ` , ` CTransaction ` , etc, along with the network-level
8787wrappers for them, ` msg_block ` , ` msg_tx ` , etc).
8888
@@ -96,32 +96,35 @@ the Bitcoin Core node application logic. For custom behaviour, subclass the
9696P2PInterface object and override the callback methods.
9797
9898- Can be used to write tests where specific P2P protocol behavior is tested.
99- Examples tests are ` p2p_unrequested_blocks.py ` , ` p2p_compactblocks.py ` .
99+ Examples tests are [ p2p_unrequested_blocks.py] ( p2p_unrequested_blocks.py ) ,
100+ [ p2p_compactblocks.py] ( p2p_compactblocks.py ) .
100101
101- ### test-framework modules
102+ ### Test framework modules
103+ The following are useful modules for test developers. They are located in
104+ [ test/functional/test_framework/] ( test_framework ) .
102105
103- #### [ test_framework/ authproxy.py] ( test_framework/authproxy.py )
106+ #### [ authproxy.py] ( test_framework/authproxy.py )
104107Taken from the [ python-bitcoinrpc repository] ( https://github.com/jgarzik/python-bitcoinrpc ) .
105108
106- #### [ test_framework/test_framework .py] ( test_framework/test_framework.py )
109+ #### [ test_framework.py] ( test_framework/test_framework.py )
107110Base class for functional tests.
108111
109- #### [ test_framework/ util.py] ( test_framework/util.py )
112+ #### [ util.py] ( test_framework/util.py )
110113Generally useful functions.
111114
112- #### [ test_framework/ mininode.py] ( test_framework/mininode.py )
115+ #### [ mininode.py] ( test_framework/mininode.py )
113116Basic code to support P2P connectivity to a bitcoind.
114117
115- #### [ test_framework/ script.py] ( test_framework/script.py )
118+ #### [ script.py] ( test_framework/script.py )
116119Utilities for manipulating transaction scripts (originally from python-bitcoinlib)
117120
118- #### [ test_framework/ key.py] ( test_framework/key.py )
121+ #### [ key.py] ( test_framework/key.py )
119122Test-only secp256k1 elliptic curve implementation
120123
121- #### [ test_framework/ bignum.py] ( test_framework/bignum.py )
124+ #### [ bignum.py] ( test_framework/bignum.py )
122125Helpers for script.py
123126
124- #### [ test_framework/ blocktools.py] ( test_framework/blocktools.py )
127+ #### [ blocktools.py] ( test_framework/blocktools.py )
125128Helper functions for creating blocks and transactions.
126129
127130### Benchmarking with perf
0 commit comments