First coverage reports. Tests don't get near enough coverage but running the program does.

This commit is contained in:
Zed A. Shaw 2024-11-29 09:41:02 -05:00
parent 988edf13d7
commit 97255eb813
7 changed files with 127 additions and 5 deletions

View file

@ -14,7 +14,7 @@ ragel:
ragel -o .\ansi_parser.cpp .\ansi_parser.rl
build: ansi_parser.cpp
meson compile -j 4 -C builddir
meson compile -j 10 -C builddir
test: build
./builddir/runtests
@ -28,3 +28,6 @@ clean:
debug:
gdb --nx -x .gdbinit builddir/roguish.exe
cover:
gcovr --html coverage/coverage_report.html --gcov-ignore-errors=no_working_dir_found --exclude "scratchpad.*" --exclude "subprojects.*" --html-nested coverage/