]> Git Repo - VerusCoin.git/commitdiff
Update unit-tests documentation. closes #1530
authorDaira Hopwood <[email protected]>
Sat, 22 Oct 2016 17:45:26 +0000 (18:45 +0100)
committerDaira Hopwood <[email protected]>
Sat, 22 Oct 2016 17:45:26 +0000 (18:45 +0100)
Signed-off-by: Daira Hopwood <[email protected]>
doc/unit-tests.md

index 687040623a1c89da102f913d239670589239051f..f10ed9cf7e10decaaf6aa660392279f8b8ffd5bf 100644 (file)
@@ -1,20 +1,16 @@
-*** Warning: This document has not been updated for Zcash and may be inaccurate. ***
+Compiling/running automated tests
+---------------------------------
 
-Compiling/running unit tests
-------------------------------------
-
-Unit tests will be automatically compiled if dependencies were met in configure
+Automated tests will be automatically compiled if dependencies were met in configure
 and tests weren't explicitly disabled.
 
-After configuring, they can be run with 'make check'.
-
-To run the bitcoind tests manually, launch src/test/test_bitcoin .
+There are two scripts for running tests:
 
-To add more bitcoind tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
-.cpp files in the test/ directory or add new .cpp files that
-implement new BOOST_AUTO_TEST_SUITE sections.
+* ``qa/zcash/full-test-suite.sh``, to run the main test suite
+* ``qa/pull-tester/rpc-tests.sh``, to run the RPC tests.
 
-To run the bitcoin-qt tests manually, launch src/qt/test/test_bitcoin-qt
+The main test suite uses two different testing frameworks. Tests using the Boost
+framework are under ``src/test/``, and tests using the Google Test/Google Mock
+framework are under ``src/gtest/``. The latter is preferred for new Zcash unit tests.
 
-To add more bitcoin-qt tests, add them to the `src/qt/test/` directory and
-the `src/qt/test/test_main.cpp` file.
+RPC tests are implemented in Python under the ``qa/rpc-tests/`` directory.
This page took 0.025055 seconds and 4 git commands to generate.