Visualising the data behind test coverage

Charting the historical test coverage performance of the main application for each marge of a feature brain to main. For each of the main coverage themes of Statements, Functions, Lines and Branches this displays a total percentage of lines covered, rendered inside an area-range detailing the total number of themes in the codebase, and how much is covered by tests.

Total Unit Test Coverage - Current app build (0.30.32)
Chart generated in Highcharts

For those perhaps less familiar with what the meaning of these themes are in the context of the code-base; consider each of these to be:

Where particular milestones in the release versions, these are marked in the chart with a numerical annotation plotted at the upper edge of the x-axis. A more detailed description to the changes made to effect shifts in the metric figures in that released are documented below.

0.27.9: Prior to this release a number of utility methods - such as Collection.asyncForEach were needlessly being covered by unit tests within this repository. As the functionality is provided by the package @project-beardy/utils (which has it's own unit test coverage) the local tests for these were removed. This results in a notable drop in the number of files unit tests were touching

0.28.8: Work undertaken to add additional methods to the LocalUser service refactored the existing unit tests already implemented for this class. More robust testing for potential error states mean number not only does total numberof tests increase, but also ensures some of the previously untouched errors of the code base are now covered

0.28.10: A small update to the Jest configuration allowed for the filtering out of any application view type classes from being included in the figures for unit test coverage.

As this code largely relates to visual UI elements, these are covered by coverage metrics generated by the Cypress automation tests. It therefore makes sense for them to be discounted as no unit test will practially touch these parts of the code.

This means that whilst it appears the amount of testing has dropped, in fact because proportionaly the coverage tests have over code has jumped significantly is an indication to the actual quality of coverage.