2.5. gnatcoverage module

GNAThub plug-in for the GNATcoverage command-line tool.

It exports the GNATcoverage class which implements the GNAThub.Plugin interface. This allows GNAThub’s plug-in scanner to automatically find this module and load it as part of the GNAThub default execution.

class gnatcoverage.GNATcoverage[source]

Bases: Plugin, Reporter

GNATcoverage plugin for GNAThub.

Retrieves .xcov generated files from the project root object directory, parses them and feeds the database with the data collected from each files.

__init__()[source]

Initialize instance properties.

report()[source]

Analyse the report files generated by GNATcoverage.

Finds all .xcov files in the object directory and parses them.

Sets the exec_status property according to the success of the analysis:

  • GNAThub.EXEC_SUCCESS: on successful execution and analysis

  • GNAThub.EXEC_FAILURE: on any error