12 Commits
Author SHA1 Message Date
torstenandCopilot 63444f8f14 Fix lcov unused exclude pattern error
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
Add 'unused' to --ignore-errors to handle exclude patterns that may not match
all files in all build configurations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: b013634f799e
2026-10-22 19:52:37 +02:00
torsten 0162466168 Fix Dockerfile: GID 1001, remove genhtml (included in lcov), cleanup test file
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
Entire-Checkpoint: 0d9a8cfb0768
2026-10-22 19:36:19 +02:00
torstenandCopilot fda4b23734 Fix AutoMOC: include correct moc file in test_mainwindow.cpp
qt-migration-copilot-demo/pipeline/pr-main This commit looks good
- Changed #include from test_main.moc to test_mainwindow.moc
- Required for Qt Meta-Object Compiler to process Q_OBJECT macro

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: 5ac05d07f260
2026-10-22 19:18:06 +02:00
torstenandCopilot 78d273a07a Rename test file to match policy script pattern
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
- Rename tests/test_main.cpp to tests/test_mainwindow.cpp
- Update CMakeLists.txt to reference new test filename
- This ensures policy check script finds matching test for MainWindow.cpp

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: fa1f655c111a
2026-10-22 18:52:58 +02:00
torstenandCopilot 468e18560f Fix duplicate main() linker error in tests
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
- Merged test_mainwindow.cpp tests into test_main.cpp to have single main()
- Removed test_mainwindow.cpp from CMakeLists.txt test executable
- Qt test executables should have only one main() via QTEST_MAIN()

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: 0f6858921c53
2026-10-22 18:49:11 +02:00
torsten c312c7ab31 Fix QString literals in test_mainwindow.cpp
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
Replace u""_s with QStringLiteral() for compiler compatibility

Entire-Checkpoint: 7fd5c52cf858
2026-10-22 18:45:30 +02:00
torsten fa3a27c123 fix: CMake include path and QString literals
- Add target_include_directories for test target to find MainWindow.h
- Replace u""_s literals with QStringLiteral() for compiler compatibility
- Fixes Jenkins build errors

Entire-Checkpoint: 0e6491fe1b1c
Signed-off-by: twi-devel <torsten.wierschin@life-maps.com>
2026-10-22 18:42:43 +02:00
torsten fc70e757bd style: Apply clang-format to all C++ files
- Format MainWindow.cpp, MainWindow.h, main.cpp
- Format test files (test_main.cpp, test_mainwindow.cpp)
- Fixes Jenkins clang-format policy check

Entire-Checkpoint: ea47c089bf3a
Signed-off-by: twi-devel <torsten.wierschin@life-maps.com>
2026-10-22 18:42:43 +02:00
torsten 44f52cb2db fix: Add Qt6::Test component to find_package
- Missing Qt6::Test component caused CMake configuration failure in Jenkins
- Required for test executable linking

Entire-Checkpoint: ec1d65182c71
Signed-off-by: twi-devel <torsten.wierschin@life-maps.com>
2026-10-22 18:42:43 +02:00
torstenandCopilot 78a81a95b6 feat: Add LCOV coverage support for Jenkins CI
- 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
Entire-Checkpoint: 70341e29996b
Signed-off-by: twi-devel <torsten.wierschin@life-maps.com>
2026-10-22 18:42:43 +02:00
torsten 3bdffc8a7f migrate: Qt5/C++11 app to Qt6/C++23 with tests and modern Qt APIs
qt-migration-copilot-demo/pipeline/head There was a failure building this commit
Entire-Checkpoint: c1ee98dc34a3
2026-08-13 10:18:41 +02:00
torsten 044885dddb Adds qt migration example 2026-08-05 15:29:14 +02:00