k06a / boolinq

Simplest C++ header-only LINQ template library
MIT License
628 stars 79 forks source link

Generate gcov with llvm-cov for clang builds and skip gcov in cpp-coveralls #57

Closed helr441 closed 2 years ago

helr441 commented 2 years ago

Previously coverage wasn't captured for clang builds and reported at 0%. With this change, we now get some numbers.

As a corollary, we now see nice coverage numbers for the overall build matrix instead of a miserable (and misleading) 0%!

coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 0.0% when pulling 6f44143e9409dffd260b8b896099e1484e89c660 on helr441:wip/coveralls into b3deae8da665433a006c774274bb86df6d46fcc3 on k06a:master.

k06a commented 2 years ago

@helr441 strange, I see 0% test coverage again :(

helr441 commented 2 years ago

It seems the builds (gcc/clang) are not outputting coverage information (.gcda/.gcno) files. I wonder if the CMakefile cleanup caused this? Looking at Travis build 207, coveralls did not find any coverage info (many None in the python array output)

https://app.travis-ci.com/github/k06a/boolinq/jobs/553807956

$ coveralls --root .. --include include --gcov-options '\-lp' --gcov $GCOV --verbose
...'source_files': [{'name': 'include/boolinq/boolinq.h', 'coverage': [None, None, None, None, None, None, None, None, None, ...