Site Tools


unittest_coverage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
unittest_coverage [2016/03/02 12:24]
mjun85
unittest_coverage [2016/03/02 12:48]
mjun85
Line 2: Line 2:
   - '​-fprofile-arcs'​ '​-ftest-coverage'​ add to Sconscript file    - '​-fprofile-arcs'​ '​-ftest-coverage'​ add to Sconscript file 
   - gcov lib add to Sconscript file   - gcov lib add to Sconscript file
-  - Build IoTivity in debug mode (scons RELEASE=0) +  - Build IoTivity in debug mode (scons RELEASE=0), be sure to have the debug libraries in your LD_LIBRARY_PATH 
-  - ./lcov.sh -d /​home/​iotivity -c -o coverage.info +  - ./lcov.sh -d /​home/​iotivity-project-dir ​-c -o coverage.info 
-  - genhtml --highlight --legend -output-directory out coverage.info+  - [genhtml --highlight --legend -output-directory out coverage.info], check cov_results in your current directory
  
 See below the example script and SConscript modifications:​ See below the example script and SConscript modifications:​
unittest_coverage.txt · Last modified: 2016/03/02 12:48 by mjun85