[GENERAL] Extension coverage

Поиск
Список
Период
Сортировка
От Gabriel Furstenheim Milerud
Тема [GENERAL] Extension coverage
Дата
Msg-id CAJN3DWoU5JgWNAoKLhht-wop+X59T_==B+H7DwnkDJFRKck8Bw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] Extension coverage  (Michael Paquier <michael.paquier@gmail.com>)
Список 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.

   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



В списке pgsql-general по дате отправления:

Предыдущее
От: Harry Ambrose
Дата:
Сообщение: Re: [GENERAL] ERROR: unexpected chunk number 0 (expected 1) for toastvalue 76753264 in pg_toast_10920100
Следующее
От: Moreno Andreo
Дата:
Сообщение: [GENERAL] Invalid magic number 0000 in log file