[REDMINE1D-64] [RM-5937] Mettre a jour l'analyse de couverture de code Created: 04/Jun/21  Updated: 06/Jul/23  Resolved: 05/Jul/23

Status: Won't Fix
Project: 1D Redmine
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Redmine-Jira Migtation Assignee: Redmine-Jira Migtation
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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>



 Comments   
Comment by Redmine-Jira Migtation [ 06/Jul/23 ]

Comment by Pierre-yves Chabaud on 2021-09-01 21:44:04:
Same as #6469 => Rejected

Generated at Sat Feb 10 15:28:56 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.