File Statistics

The "File Statistics" module is intended for storing additional information related to source code files.

By default, the system offers to store the following data:

  • Total number of lines in the file
  • Number of lines in the file covered by tests
  • Coverage percentage
  • Programming language

You can add your own additional attributes (metadata), and also create links to source code files, for example in order to link requirements to source code files (in addition to, or instead of, links between requirements and code commits).

The system provides import of coverage data (pcov files) using the "Import coverage" action. During continuous integration (CI), or after measuring code coverage separately with automated or integration tests, you can produce a file with coverage data and import it into the system manually or automatically.

Using sorting and filters, you can find problem areas in the code:

  • Files with weak test coverage;
  • Files with "dead" code;
  • and so on.

These characteristics can be presented as a metric and used to monitor the project, as in the example below: