1Tests
2=====
3
4Unit Tests
5----------
6Bareos unit tests are usually written in C++ using Google Test.
7The unit tests reside in ``core/src/tests`` and are compiled with the rest of Bareos if Google Test is available on your system.
8Unit tests can be run using ``make test`` or ``ctest``.
9
10Adding a new Test
11~~~~~~~~~~~~~~~~~
12To add a new test, you create your sourcefiles in ``core/src/tests`` and register the test in ``CMakeLists.txt`` in that directory.
13There is also a helper script ``add_new_unit_test.sh`` that will setup a test from a template and register it in ``CMakeLists.txt``.
14