Closed serge-s closed 9 months ago
This file was important. Go ahead and do a PR which fixes it.
And are you going to share your coverage work?
This file was important. Go ahead and do a PR which fixes it.
https://github.com/pboettch/json-schema-validator/pull/284
And are you going to share your coverage work?
I haven't done any coverage work on the library itself - faced this issue when I was trying to enable coverage for my code that uses json-schema-validator and faced gcovr errors. I did notice some irregularities with the json-schema-validator tests though which I will try to address separately.
gcovr provides a utility for managing the use of the GNU gcov utility and generating summarized code coverage results.
Repro steps:
build the library with tests & code coverage enabled
cmake . -Bbuild -DJSON_VALIDATOR_BUILD_TESTS=ON -DJSON_VALIDATOR_TEST_COVERAGE=ON
cmake --build ./build
run tests to produce coverage results
cmake --build ./build --target test
run gcovr to produce human-readable results
/usr/bin/gcovr --object-directory=build -r .
this generates multiple warnings:
Possible root cause:
gcovr is confused by the '#line' entries in src/smtp-address-validator.cpp - at least removing them makes the warning go away.