Files
hush3/doc/unit-tests.md
Larry Ruane 0ee4b20a7b fix qa/zcash/full_test_suite.py pathname
underscores instead of hyphens; .py instead of .sh
(did not bother with PR but Eirik reviewed this change)
2018-05-14 16:50:42 -06:00

710 B

Compiling/running automated tests

Automated tests will be automatically compiled if dependencies were met in configure and tests weren't explicitly disabled.

There are two scripts for running tests:

  • qa/zcash/full_test_suite.py, to run the main test suite
  • qa/pull-tester/rpc-tests.sh, to run the RPC tests.

The main test suite uses two different testing frameworks. Tests using the Boost framework are under src/test/; tests using the Google Test/Google Mock framework are under src/gtest/ and src/wallet/gtest/. The latter framework is preferred for new Zcash unit tests.

RPC tests are implemented in Python under the qa/rpc-tests/ directory.