Browse Source

Updated readme file with information about CMake option for enabling unit tests.

merge-requests/37/head
Patrick Lühne 10 years ago
parent
commit
9154d5fe2b
  1. 16
      README.md

16
README.md

@ -12,25 +12,19 @@ Developed for [juCi++](https://github.com/cppit/jucipp) - a lightweight platform
See [installation guide](https://github.com/cppit/libclangmm/blob/master/docs/install.md) See [installation guide](https://github.com/cppit/libclangmm/blob/master/docs/install.md)
# Tests # # Tests #
The compilation of the tests are disabled due to ease of installation. Simply enter CMakeList.txt and uncomment the last two lines in the file to enable testing. To run the unit tests, first enable the CMake option `LIBCLANGMM_BUILD_TESTS`:
```sh ```sh
# enable_testing() cmake -DLIBCLANGMM_BUILD_TESTS=ON .
# add_subdirectory(tests)
``` ```
Then simply: Then, simply call:
```sh ```sh
cmake .
make make
ctest ctest
``` ```
If you want an more detailed look at the tests run the binary instead You may also run the test binary directly to get more details:
```sh ```sh
cmake .
make make
cd tests cd tests
./clangmm_tests --log_level=all ./clangmm_tests --log_level=all
``` ```
To see more log parameters see [here](http://www.boost.org/doc/libs/1_58_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html). For more options, see the [documentation of boost’s unit testing framework](http://www.boost.org/doc/libs/1_58_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html).

Loading…
Cancel
Save