rendezqueue / rendezllama

CLI for llama.cpp with various commands to guide, edit, and regenerate tokens on the fly.
ISC License
11 stars 1 forks source link

ci: coverage #23

Closed grencez closed 1 year ago

grencez commented 1 year ago
  1. Configure with -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage". Maybe a Debug build. Maybe RelWithDebInfo.
  2. Run ctest -T Test -T Coverage.
  3. lcov --capture --directory bld/Testing/CoverageInfo/ --output-file bld/coverage_report.info
  4. Upload to coveralls by pointing the github action at bld/coverage_report.info.

Refs:

grencez commented 1 year ago

https://github.com/codecov/example-cpp11-cmake

I've almost got it but might be confused about the lcov command. Maybe running it from the wrong directory.