Files
app-ethereum/tests/unit
2022-06-28 15:11:18 +02:00
..
2022-06-28 15:11:18 +02:00
2022-06-28 15:11:17 +02:00
2022-06-28 15:11:16 +02:00
2022-06-28 15:11:16 +02:00
2022-06-28 15:11:16 +02:00

Unit tests

It is important to unit test your functions.
This also allows you to document how your functions work.
We use the library cmocka

Requirement

Don't worry, you don't necessarily need to install the cmocka library because the cmakelist automatically fetches the library

Usage

Build

The default rules of makefile will compile the tests and run them.

make

The coverage rule will launch the default rules and generate the coverage and you will be automatically redirected to the generated .html

make coverage

The clean rule will delete the folders and files generated

make clean