diff options
author | Kozoriz <kozorizandriy@gmail.com> | 2016-06-06 15:05:36 +0300 |
---|---|---|
committer | Kozoriz <kozorizandriy@gmail.com> | 2016-06-10 14:22:52 +0300 |
commit | 1f8b48ded5b5509d4ff53877106018e011112d43 (patch) | |
tree | fa24ef5ae6dc5ed8b0e02997dedb9b8a3854194e | |
parent | 850603b2d1ca9ab438e51838f5cf03cac0c580fa (diff) | |
download | sdl_core-1f8b48ded5b5509d4ff53877106018e011112d43.tar.gz |
Update test coverage section
-rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -181,9 +181,16 @@ _We test only sources written by us and we don`t need to test external sources(o You can find it in [Coverage report](https://codecov.io/gh/smartdevicelink/sdl_core/branch/develop) ### How to get Test Coverage locally - 1. Build project with enabled flag _-DBUILD_TESTS=on_ + Precondition : if you dont have lcov, gcov, html2text, install it before running. + 1. Build project with flags _-DBUILD_TESTS=on -DENABLE_GCOV=on_ 2. Execute command 'make test' - 3. Execute './tools/Utils/collect_coverage.sh <path_to_build_directory>' + 3. Execute './tools/infrastructure/collect_coverage.sh \<path_to_build_directory\>' + + Note : + * In case of a lot of warnings probably issue is gcov ang gcc version mismatch. + * You should install gcov-4.9 as default gcov in you system. + * Please ensure that /usr/bin/gcov is 4.9 version. + * And execute : _sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov_ ## Contributions |