neobytes/doc/unit-tests.md

19 lines
668 B
Markdown
Raw Normal View History

Compiling/running unit tests
2012-06-15 02:44:04 +02:00
------------------------------------
Unit tests will be automatically compiled if dependencies were met in configure
and tests weren't explicitly disabled.
2012-06-15 02:44:04 +02:00
After configuring, they can be run with 'make check'.
2013-05-20 06:30:00 +02:00
2015-04-05 23:56:58 +02:00
To run the dashd tests manually, launch src/test/test_dash .
2012-06-15 02:44:04 +02:00
2015-04-05 23:56:58 +02:00
To add more dashd tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
2012-06-15 02:44:04 +02:00
.cpp files in the test/ directory or add new .cpp files that
implement new BOOST_AUTO_TEST_SUITE sections.
2012-06-15 02:44:04 +02:00
2015-04-05 23:56:58 +02:00
To run the dash-qt tests manually, launch src/qt/test/dash-qt_test
2013-05-20 06:30:00 +02:00
2015-04-05 23:56:58 +02:00
To add more dash-qt tests, add them to the `src/qt/test/` directory and
the `src/qt/test/test_main.cpp` file.