class CoverageReporter::Parser
- CoverageReporter::Parser
- Reference
- Object
Overview
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.
Defined in:
coverage_reporter/parser.crConstant Summary
-
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)
Instance Method Summary
- #base_path : String | Nil
- #coverage_files : Array(String) | Nil
- #coverage_format : String | Nil
-
#files : Array(String)
Returns coverage report files that can be parsed by utility.
- #parse : SourceFiles
- #parsers : Array(BaseParser)
Constructor Detail
def self.new(coverage_files : Array(String) | Nil, coverage_format : String | Nil, base_path : String | Nil)
#