-
Type:
Task
-
Status: Won't Fix (View Workflow)
-
Priority:
Normal
-
Resolution: Won't Fix
-
Labels:None
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>
-
-
-
- -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>