@@ -136,9 +136,19 @@ For example usage see ```test/api_test.c```.
## Tests
During the development of this library cmocka unit testing was utilized. In total 28 unit tests are prepared, testing a varity of scenarios, with a focus on setters, these unit tests are furthermore tested with valgrind to ensure no memory leaks are present.
During the development of this library cmocka unit testing was used. In total 32 unit tests are prepared, testing a varity of scenarios, with a focus on setters. Additionally, these unit tests are tested with valgrind to ensure no memory leaks are present.
To run the tests perform the same steps as described under the build section and then run
To run the tests perform the same steps as described under the build section, but this time prepare the cmake build type for debugging (note that if you are building from the same instance you will need to remove ```CMakeCache.txt```):
```
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Debug
make
sudo make install
```
There should now be a test subdirectory under the build directory. Now run: