ok
Direktori : /opt/alt/postgresql11/usr/share/doc/alt-postgresql11-9.2.24/html/ |
Current File : //opt/alt/postgresql11/usr/share/doc/alt-postgresql11-9.2.24/html/regress-coverage.html |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Test Coverage Examination</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.2.24 Documentation" HREF="index.html"><LINK REL="UP" TITLE="Regression Tests" HREF="regress.html"><LINK REL="PREVIOUS" TITLE="Variant Comparison Files" HREF="regress-variant.html"><LINK REL="NEXT" TITLE="Client Interfaces" HREF="client-interfaces.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><META NAME="creation" CONTENT="2017-11-06T22:43:11"></HEAD ><BODY CLASS="SECT1" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="5" ALIGN="center" VALIGN="bottom" ><A HREF="index.html" >PostgreSQL 9.2.24 Documentation</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A TITLE="Variant Comparison Files" HREF="regress-variant.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A HREF="regress.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="60%" ALIGN="center" VALIGN="bottom" >Chapter 30. Regression Tests</TD ><TD WIDTH="20%" ALIGN="right" VALIGN="top" ><A TITLE="Client Interfaces" HREF="client-interfaces.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="REGRESS-COVERAGE" >30.4. Test Coverage Examination</A ></H1 ><P > The PostgreSQL source code can be compiled with coverage testing instrumentation, so that it becomes possible to examine which parts of the code are covered by the regression tests or any other test suite that is run with the code. This is currently supported when compiling with GCC and requires the <TT CLASS="COMMAND" >gcov</TT > and <TT CLASS="COMMAND" >lcov</TT > programs. </P ><P > A typical workflow would look like this: </P><PRE CLASS="SCREEN" >./configure --enable-coverage ... OTHER OPTIONS ... gmake gmake check # or other test suite gmake coverage-html</PRE ><P> Then point your HTML browser to <TT CLASS="FILENAME" >coverage/index.html</TT >. The <TT CLASS="COMMAND" >gmake</TT > commands also work in subdirectories. </P ><P > To reset the execution counts between test runs, run: </P><PRE CLASS="SCREEN" >gmake coverage-clean</PRE ><P> </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="regress-variant.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="client-interfaces.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Variant Comparison Files</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="regress.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Client Interfaces</TD ></TR ></TABLE ></DIV ></BODY ></HTML >