@ -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).