class

CoverageReporter::Parser

Inherits Reference / Object

General parser that can do the following:

  • Automatically find coverage report files.
  • Parse coverage report files and return the format that Coveralls API requires.

New parsers can be easily added. See BaseParser for details.

Constants

PARSERS = {CloverParser, CoberturaParser, JacocoParser, GolangParser, CoveragepyParser, CoverallsParser, LcovParser, SimplecovParser, GcovParser}

A list of available parsers. See CoverageReporter::BaseParser for details.

Constructors

new(coverage_files : Array(String) | Nil, coverage_format : String | Nil, base_path : String | Nil)
Source

Instance methods

base_path
Source
coverage_files
Source
coverage_format
Source
files

Returns coverage report files that can be parsed by utility.

Source
parse
Source
parsers
Source

Nested types