summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-06-06 15:05:36 +0300
committerKozoriz <kozorizandriy@gmail.com>2016-06-10 14:22:52 +0300
commit1f8b48ded5b5509d4ff53877106018e011112d43 (patch)
treefa24ef5ae6dc5ed8b0e02997dedb9b8a3854194e
parent850603b2d1ca9ab438e51838f5cf03cac0c580fa (diff)
downloadsdl_core-1f8b48ded5b5509d4ff53877106018e011112d43.tar.gz
Update test coverage section
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 781265387b..ebf5faa358 100644
--- a/README.md
+++ b/README.md
@@ -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