Skip to content

Run the unit tests

Jeremy Dumais edited this page Feb 6, 2022 · 2 revisions

Build and run the unit tests

First to configure CMake to build the unit tests you must pass the option -DBUILD_TESTING=on.

Ex: cmake -DBUILD_TESTING=on ..

To ensure that all the tests pass on the CPP-SMTP-Library, you need to build the projet first and call the following command from the build folder :

ctest --progress

CTest Progress



If you want to view the complete unit tests run just call ctest from the build folder:
ctest

CTest Full Run