Child pages
  • Code Coverage for Ant builds

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

To add coverage information to Ant build configuration:

  • To artefacts.paths run parameter, add the following: "coverage/coverage.zip,coverage.txt" :
    Code Block
    xml
    xml
      <run-parameters>
        <!-- For coverage: -->
        <param name="artefacts.paths" value="coverage/coverage.zip,coverage.txt"/>
      </run-parameters>
    
  • Add build parameter:
    Code Block
    xml
    xml
        <parameters>
          <param name="system.report.html.out.file" value="coverage/index.html"/>
        </parameters>
    
  • You can also specify class filter for coverage instrumentation (http://emma.sourceforge.net/reference/ch02s03s03.html):
    Code Block
    xml
    xml
      <parameters>
        <param name="system.report.html.out.file" value="coverage/index.html"/>
        <param name="system.emma.instrumentation.parameters" value="-ix +com.intellij.* -ix -*Text* "/>
      </parameters>