Coverage Info

Search
Searching TeamCity 4.x Documentation
Table of Contents

Coverage Info

Option Description
Code coverage The following options are available:
  • Enable code coverage: Check this option, if you want code coverage to be analyzed.
    The mechanism used in TeamCity is based on EMMA open-source toolkit (see http://emma.sourceforge.net/ for details).

    If this option is not checked, other coverage settings are disabled.

    'metadata is empty' problem
    For some complex build scripts, coverage metadata cannot be collected. In this case, try adding debug=true parameter to javac tasks in your Ant script.
  • Include Source Files in the Coverage Data: Check this option to include source files into the code coverage report (you'll be able to see sources on the Web).
    Warning
    Enabling this option can increase the report size and the slow down creation of your builds. To avoid this situation, you can specify some EMMA properties (see http://emma.sourceforge.net/reference_single/reference.html#prop-ref.tables for details).
Coverage Instrumentation Parameters Use this field to specify the filters to be used for creating the code coverage report. These filters define classes to be exempted from instrumentation. For detailed description of filters refer to http://emma.sourceforge.net/reference_single/reference.html#prop-ref.tables.

Labels