aboutsummaryrefslogtreecommitdiff
path: root/doc/unit-tests.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/unit-tests.txt')
-rw-r--r--doc/unit-tests.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/unit-tests.txt b/doc/unit-tests.txt
index 9bc4cfa44b..a12786512d 100644
--- a/doc/unit-tests.txt
+++ b/doc/unit-tests.txt
@@ -14,5 +14,20 @@ If all tests succeed the last line of output will be:
To add more 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 (and add them to the
-list of includes in test_bitcoin.cpp).
+implement new BOOST_AUTO_TEST_SUITE sections (the makefiles are
+set up to add test/*.cpp to test_bitcoin automatically).
+
+
+Compiling/running Bitcoin-Qt unit tests
+---------------------------------------
+
+Bitcoin-Qt unit tests are in the src/qt/test/ directory; they
+use the Qt unit-testing framework.
+
+To compile and run the tests:
+qmake bitcoin-qt.pro BITCOIN_QT_TEST=1
+make
+./bitcoin-qt_test
+
+To add more tests, add them to the src/qt/test/ directory,
+the src/qt/test/test_main.cpp file, and bitcoin-qt.pro.