From f103e2a02305e9ca3ef5ae27b8a426320ead3e1a Mon Sep 17 00:00:00 2001 From: Coline Date: Thu, 10 Mar 2022 10:43:40 +0100 Subject: [PATCH] docs: readme unit tests --- tests/unit/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/README.md b/tests/unit/README.md index eb89951..68a98f2 100644 --- a/tests/unit/README.md +++ b/tests/unit/README.md @@ -11,6 +11,12 @@ We use the library [**cmocka**](https://cmocka.org/#features) Don't worry, you don't necessarily need to install the `cmocka library` because the **cmakelist automatically fetches** the library +## Add new test + +Create new file into `tests` folder and follow [this initiation](https://cmocka.org/talks/cmocka_unit_testing_and_mocking.pdf) + +Now go to the `CMakeLists.txt` file and add your test with the specific file you want to test. + ## Usage ### Build