feat: Add LCOV coverage support for Jenkins CI #2

Closed
twi-devel wants to merge 1 commits from feature/coverage-integration into main
pull from: feature/coverage-integration
Collaborator
  • Add ENABLE_COVERAGE CMake option with gcov flags
  • Create collect-coverage.sh script for LCOV workflow
  • Add Qt6 test files with QTest framework
  • Update Jenkinsfile with Coverage stage (main/master/coverage.*)
  • Update CI Docker image with lcov and genhtml packages
  • Add .gitignore entries for coverage artifacts
  • Add COVERAGE.md documentation

Coverage workflow:

  1. Configure with -DENABLE_COVERAGE=ON
  2. Build and run tests to generate .gcda/.gcno files
  3. Collect coverage with lcov
  4. Filter out Qt/system libraries
  5. Generate HTML report and lcov.info for Jenkins

Jenkins publishes coverage/lcov.info using Coverage Plugin.
Coverage stage only runs on protected branches.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
Entire-Checkpoint: 7783c7698334

- Add ENABLE_COVERAGE CMake option with gcov flags - Create collect-coverage.sh script for LCOV workflow - Add Qt6 test files with QTest framework - Update Jenkinsfile with Coverage stage (main/master/coverage.*) - Update CI Docker image with lcov and genhtml packages - Add .gitignore entries for coverage artifacts - Add COVERAGE.md documentation Coverage workflow: 1. Configure with -DENABLE_COVERAGE=ON 2. Build and run tests to generate .gcda/.gcno files 3. Collect coverage with lcov 4. Filter out Qt/system libraries 5. Generate HTML report and lcov.info for Jenkins Jenkins publishes coverage/lcov.info using Coverage Plugin. Coverage stage only runs on protected branches. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: 7783c7698334
twi-devel added 1 commit 2026-10-22 15:36:51 +00:00
feat: Add LCOV coverage support for Jenkins CI
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
qt-migration-copilot-demo/pipeline/head There was a failure building this commit
8ef6529c0c
- Add ENABLE_COVERAGE CMake option with gcov flags
- Create collect-coverage.sh script for LCOV workflow
- Add Qt6 test files with QTest framework
- Update Jenkinsfile with Coverage stage (main/master/coverage.*)
- Update CI Docker image with lcov and genhtml packages
- Add .gitignore entries for coverage artifacts
- Add COVERAGE.md documentation

Coverage workflow:
1. Configure with -DENABLE_COVERAGE=ON
2. Build and run tests to generate .gcda/.gcno files
3. Collect coverage with lcov
4. Filter out Qt/system libraries
5. Generate HTML report and lcov.info for Jenkins

Jenkins publishes coverage/lcov.info using Coverage Plugin.
Coverage stage only runs on protected branches.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: 7783c7698334
twi-devel closed this pull request 2026-10-22 21:03:30 +00:00
twi-devel deleted branch feature/coverage-integration 2026-10-22 21:14:14 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lifemaps/qt-migration-copilot-demo#2