Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-1638 CLI: Create and improve installer unit tests
  3. QTIFW-1676

Study how to use code coverage analysis tool (gcov) with installer framework

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Done
    • P2: Important
    • None
    • General
    • 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"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            arttu.tarkiainen Arttu Tarkiainen
            arttu.tarkiainen Arttu Tarkiainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes