Add some more filter tests (#4897)

This changes the `make coverage` function to use `gcovr` instead of `lcov`, and to have it generate an html file directly at `coverage/index.html` under the build directory

The only thing this changes, other than adding tests, is making the `Expression` class pure virtual. Every derived class should implement each of the functions
This commit is contained in:
pajlada
2023-10-14 10:41:10 +02:00
committed by GitHub
parent ccaedc3987
commit ab3b2d8515
4 changed files with 94 additions and 28 deletions
+4 -4
View File
@@ -679,15 +679,15 @@ endif()
if (CHATTERINO_GENERATE_COVERAGE)
include(CodeCoverage)
append_coverage_compiler_flags_to_target(${LIBRARY_PROJECT})
target_link_libraries(${LIBRARY_PROJECT} PUBLIC gcov)
message(STATUS "project source dir: ${PROJECT_SOURCE_DIR}/src")
setup_target_for_coverage_lcov(
setup_target_for_coverage_gcovr_html(
NAME coverage
EXECUTABLE ./bin/chatterino-test
BASE_DIRECTORY ${PROJECT_SOURCE_DIR}/src
EXECUTABLE ctest
EXCLUDE "/usr/include/*"
EXCLUDE "build-*/*"
EXCLUDE "lib/*"
EXCLUDE "*/ui_*.h"
EXCLUDE "*/moc_*.cpp"
)
endif ()