Skip to content

Guidance for Cpp unit tests for Arduino

Ediz Genc edited this page May 30, 2021 · 4 revisions

To run the unit tests, we recommend downloading and installing the compatible versions of the following programs for your machine of


Windows

macOS


Running unit tests

Step 1: Choose CMakeList

When you open the project on CLion, ensure of choosing CMakeList.txt in the main directory and run it by following arrows as in the image below.

CMakeList


Step 2: Run the unit tests

Choose the car_test.cpp class as below in the picture and press the run button.

Run the test


Step 3: Result of the unit tests

You should be able to get a notification as below if the unit tests are passed or failed.

Result

Clone this wiki locally