Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 473 Lines • ▼ Show 20 Lines | def check_script_list(src_dir): | ||||
if len(missed_tests) != 0: | if len(missed_tests) != 0: | ||||
print("%sWARNING!%s The following scripts are not being run: %s. Check the test lists in test_runner.py." % ( | print("%sWARNING!%s The following scripts are not being run: %s. Check the test lists in test_runner.py." % ( | ||||
BOLD[1], BOLD[0], str(missed_tests))) | BOLD[1], BOLD[0], str(missed_tests))) | ||||
if os.getenv('TRAVIS') == 'true': | if os.getenv('TRAVIS') == 'true': | ||||
# On travis this warning is an error to prevent merging incomplete commits into master | # On travis this warning is an error to prevent merging incomplete commits into master | ||||
sys.exit(1) | sys.exit(1) | ||||
class RPCCoverage(object): | class RPCCoverage(): | ||||
""" | """ | ||||
Coverage reporting utilities for test_runner. | Coverage reporting utilities for test_runner. | ||||
Coverage calculation works by having each test script subprocess write | Coverage calculation works by having each test script subprocess write | ||||
coverage files into a particular directory. These files contain the RPC | coverage files into a particular directory. These files contain the RPC | ||||
commands invoked during testing, as well as a complete listing of RPC | commands invoked during testing, as well as a complete listing of RPC | ||||
commands per `bitcoin-cli help` (`rpc_interface.txt`). | commands per `bitcoin-cli help` (`rpc_interface.txt`). | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |