From: | Gabriel Furstenheim Milerud <furstenheim(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Extension coverage |
Date: | 2017-08-25 17:59:37 |
Message-ID: | CAJN3DWoU5JgWNAoKLhht-wop+X59T_==B+H7DwnkDJFRKck8Bw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
I'm trying to measure test coverage on an extension. I've built postgres
with the --enable-coverage flag:
$ cd $POSTGRES_SOURCE_DIR
$ ./configure --enable-coverage
$ make
$ make install
The I built my extension against this postgres server
$ cd $EXTENSION_SOURCE_DIR
$ make install && make installcheck
the extension is built fine and the test run. However, I see no difference
with a normal installation without the flag.
Then I run the following target (
https://stackoverflow.com/questions/31417900/how-to-run-coverage-report-on-a-postgres-extension
)
coverage:
lcov --no-external -d . -c -o lcov.info
genhtml --show-details --legend --output-directory=coverage
--title=PostgreSQL --num-spaces=4 --prefix=./src/ `find . -name lcov.info
-print`
But it complains that there are no .gcda files
geninfo: WARNING: no .gcda files found in . - skipping!
and it errors.
genhtml: ERROR: no valid records found in tracefile ./lcov.info
Is this the way to measure coverage on an extension? Am I missing some step?
Thanks in advance
Gabriel Fürstenheim
From | Date | Subject | |
---|---|---|---|
Next Message | Moreno Andreo | 2017-08-25 18:24:08 | Invalid magic number 0000 in log file |
Previous Message | Harry Ambrose | 2017-08-25 15:57:35 | Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100 |