# sc-forks/solidity-coverage

Code coverage for Solidity smart-contracts

Repository: https://github.com/sc-forks/solidity-coverage
Canonical: https://ross.abutalabs.com/products/solidity-coverage
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2025-12-11T19:32:00+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 56, release rhythm 36, longevity 100
- inputs: {"age_days": 3411, "days_push": 265, "days_rel": 265, "gap_med": 141, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1003, forks 272 (observed 2026-09-03T02:15:17.675341+00:00)

## What it is
solidity-coverage (Solcover) is a Hardhat plugin that measures code coverage for Solidity smart-contract test suites. It instruments contracts, runs tests, and produces coverage reports via `npx hardhat coverage`.

## Use cases
- measure code coverage of solidity smart contract tests
- generate coverage reports for hardhat projects
- find untested lines in ethereum smart contracts
- map which tests hit which contract lines for mutation testing
- enforce coverage thresholds in CI for solidity code

## When to choose
- you develop Solidity smart contracts with Hardhat and want coverage metrics
- you need to identify untested branches or lines in Ethereum contracts
- you want test-to-line mappings for fuzzing or fault localization

## When to avoid
- your project uses Foundry or Truffle instead of Hardhat
- you need coverage for non-Solidity code
- you want runtime security analysis rather than test coverage

## Facets
- artifact type: plugin
- maturity: active
- function: testing, developer-tools, cli
- domain: developer-tools, testing, blockchain
- platform: cli, cross-platform
- tags: solidity, smart-contracts, code-coverage, hardhat, ethereum, blockchain-development, nodejs

## Member repositories
- sc-forks/solidity-coverage (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:17.675341+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:13:54.678656+00:00, confidence not recorded.
  - readme: https://github.com/sc-forks/solidity-coverage (fetched 2026-09-03T02:15:17.675341+00:00, sha e480a31d770f)
  - registry_npm: https://registry.npmjs.org/solidity-coverage (fetched 2026-08-29T13:13:59.955755+00:00, sha cde7e8d0911d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
