Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
Qt6 Installer Sprint 7, Qt6 Installer Sprint 8
Description
Example steps to generate code coverage report:
- Add necessary compiler & linker flags to installerfw.pri:
QMAKE_CXXFLAGS += --coverage
QMAKE_LFLAGS += --coverage
- Build installer framework & build and run autotest suite
- Capture coverage data with: "lcov -c -d . -o coverage.info"
- Filter out unnecessary paths, for example: "lcov -r coverage.info "/usr/include/" "moc_" ".moc" "/qt5/" "*7zip/" "tests/" -o coverage_filtered.info"
- Generate html report: "genhtml -o ./html coverage_filtered.info"