Added explicit checks for dependencies of coverage raport generation

This commit is contained in:
Robert Bendun 2022-05-02 22:24:01 +02:00
parent 79d96aa935
commit 3b4c306199

View File

@ -20,6 +20,8 @@ unit-tests: bin/unit-tests
./$<
unit-test-coverage:
@which gcov >/dev/null || ( echo "[ERROR] gcov is required for test coverage report"; false )
@which gcovr >/dev/null || ( echo "[ERROR] gcovr is required for test coverage report"; false )
CXXFLAGS=--coverage $(MAKE) bin/unit-tests -B
bin/unit-tests
rm -rf coverage