aboutsummaryrefslogtreecommitdiff
path: root/doc/unit-tests.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/unit-tests.md')
-rw-r--r--doc/unit-tests.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/unit-tests.md b/doc/unit-tests.md
new file mode 100644
index 0000000000..72613054b9
--- /dev/null
+++ b/doc/unit-tests.md
@@ -0,0 +1,18 @@
+Compiling/running unit tests
+------------------------------------
+
+Unit 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 .
+
+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.
+
+To run the bitcoin-qt tests manually, launch src/qt/test/test_bitcoin-qt
+
+To add more bitcoin-qt tests, add them to the `src/qt/test/` directory and
+the `src/qt/test/test_main.cpp` file.