Changeset View
Changeset View
Standalone View
Standalone View
doc/unit-tests.md
Show All 21 Lines | |||||
To run the `bitcoin-qt` tests manually, launch `src/qt/test/test_bitcoin-qt`. | 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 | To add more `bitcoin-qt` tests, add them to the `src/qt/test/` directory and | ||||
the `src/qt/test/test_main.cpp` file. | the `src/qt/test/test_main.cpp` file. | ||||
#### bitcoin-seeder unit tests | #### bitcoin-seeder unit tests | ||||
The `bitcoin-seeder` unit tests can be built with `ninja test_bitcoin-seeder` or | The `bitcoin-seeder` unit tests can be built with `ninja test-seeder` or | ||||
built and run in a single command with `ninja check-bitcoin-seeder`. | built and run in a single command with `ninja check-seeder`. | ||||
To run the `bitcoin-seeder` tests manually, launch | To run the `bitcoin-seeder` tests manually, launch | ||||
`src/seeder/test/test_bitcoin-seeder`. | `src/seeder/test/test-seeder`. | ||||
To add more `bitcoin-seeder` tests, add `BOOST_AUTO_TEST_CASE` functions to the | To add more `bitcoin-seeder` tests, add `BOOST_AUTO_TEST_CASE` functions to the | ||||
existing .cpp files in the `src/seeder/test/` directory or add new .cpp files | existing .cpp files in the `src/seeder/test/` directory or add new .cpp files | ||||
that implement new `BOOST_AUTO_TEST_SUITE` sections. | that implement new `BOOST_AUTO_TEST_SUITE` sections. | ||||
### Running individual tests | ### Running individual tests | ||||
`test_bitcoin` has some built-in command-line arguments; for | `test_bitcoin` has some built-in command-line arguments; for | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |