Test code coverage

Tier 2 · Executable - Silver recommended

The code includes tests, and the share of the code they cover is checked and reported.

Rating

TipMet

The code includes automated tests (unit tests or assertion checks that values compute as expected), and their coverage is measured and reported (e.g. with covr in R).

WarningPartially met

Tests or assertion checks exist but their coverage is not measured or reported, or they cover only a small part of the code.

ImportantNot met

The code contains no tests.

Based on: #70 ‘if you did not check the code coverage of your tests, fail’; #131 adding unit tests (if/then checks every ~100 lines).

NoteNot applicable

Never.

Prerequisites

Check order: — (no prerequisite links coded)

Builds on

No core prerequisites.

Prerequisite for

No criterion builds on this one.

In the corpus

Sources Injunctive Descriptive Tacit Automatable Manual check Automation unclear LLM sources
1 100% 0% 0% 0% 0% 100% 0

Text evidence (1 quote)

#70 The Stark realities of reproducible statistically orientated sociological research: Some newer rules of the sociological method · injunctive

“If you did not check the code coverage of your tests, fail.” (Table 1, p.210)