Uploaded image for project: '1D Redmine '
  1. 1D Redmine
  2. REDMINE1D-64

[RM-5937] Mettre a jour l'analyse de couverture de code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Won't Fix (View Workflow)
    • Priority: Normal
    • Resolution: Won't Fix
    • Labels:
      None

      Description

      Created on 2020-08-26 14:58:36 by Pierre-yves Chabaud. % Done: 0

      Mettre a jour l'analyse de couverture de code.

      L'analyse de la couverture de code a été supprimé lors du nettoyage du @CMakelist.txt@ et du @README.md@ dans l'issue #5539.

      Text retiré du @README.md@
      <pre>

            1. -DTEST_COVERAGE

      Tests can output line coverage statistics if you define `TEST_COVERAGE` :

      cmake .. -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=ON -DTEST_COVERAGE=ON

      Run tests with :

      make test

      Create coverage reports with :

      GCOV_PREFIX=$HOME/src/cpf-redshift/RedshiftLibrary/ GCOV_PREFIX_STRIP=4 lcov -q -c -t "result" -o tests.cov --no-external -b $HOME/src/cpf-redshift/RedshiftLibrary/ -d CMakeFiles
      lcov -q -r tests.cov '/tests/src/' -o coverage.info
      genhtml -o coverage coverage.info
      </pre>

      Code retiré du @CMakelist.txt@
      <pre>
      IF(TEST_COVERAGE)
      SET(GCC_COVERAGE_COMPILE_FLAGS "--coverage")
      SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
      SET(cpf-redshift_COVERAGE "True")
      ELSE()
      SET(cpf-redshift_COVERAGE "False")
      ENDIF()
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              r2j.migrate Redmine-Jira Migtation
              Reporter:
              r2j.migrate Redmine-Jira Migtation
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: