You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When generating coverage for Vala projects, gcovr fails to find source files, throwing the following error messages when running ninja -C build coverage-text:
ninja -C build/ coverage-text
[1/1] Generates text coverage report
lcov: LCOV version 20190809-346-g0d75ff8980
genhtml: LCOV version 20190809-346-g0d75ff8980
(WARNING) GCOV produced the following errors processing /home/rasmus/Projects/vala-test/build/test-lib/a915ebc@@lib.vala@sta/meson-generated_lib.c.gcda:
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Cannot open source file lib.c
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Cannot open source file test-lib/a915ebc@@lib.vala@sta/lib.c
Cannot open source file ../test-lib/lib.vala
Cannot open source file lib.c
Could not open output file 'test-lib#a915ebc@@lib.vala@sta#lib.c.gcov'
Could not open output file '^#test-lib#lib.vala.gcov'
Could not open output file 'lib.c.gcov'
Could not open output file 'test-lib#a915ebc@@lib.vala@sta#lib.c.gcov'
Could not open output file '^#test-lib#lib.vala.gcov'
Could not open output file 'lib.c.gcov'
(gcovr could not infer a working directory that resolved it.)
(WARNING) GCOV produced the following errors processing /home/rasmus/Projects/vala-test/build/tests/59830eb@@test-exe@exe/meson-generated_test.c.gcda:
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file test.c
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Cannot open source file test.c
Cannot open source file ../tests/test.vala
Cannot open source file tests/59830eb@@test-exe@exe/test.c
Could not open output file 'test.c.gcov'
Could not open output file '^#tests#test.vala.gcov'
Could not open output file 'tests#59830eb@@test-exe@exe#test.c.gcov'
Could not open output file 'test.c.gcov'
Could not open output file '^#tests#test.vala.gcov'
Could not open output file 'tests#59830eb@@test-exe@exe#test.c.gcov'
(gcovr could not infer a working directory that resolved it.)
Text coverage report can be found at file:///home/rasmus/Projects/vala-test/build/meson-logs/coverage.txt
Describe the bug
When generating coverage for Vala projects, gcovr fails to find source files, throwing the following error messages when running
ninja -C build coverage-text
:coverage.txt doesn't contain any info:
To Reproduce
See the repo https://github.com/Cogitri/meson-vala-coverage-bug-reproducer for a minimal reproducer.
Expected behavior
gcovr should be able to find source files and as such generate coverage data.
system parameters
meson --version
: 0.54.3ninja --version
if it's a Ninja build: 1.9.0The text was updated successfully, but these errors were encountered: