Skip to content

Releases: gosuperscript/phpunit-coverage

1.0.1

27 May 12:37
1c7d732

Choose a tag to compare

What's Changed

Full Changelog: 1.0.0...v1.0.1

1.0.0

27 May 12:37
bb68163

Choose a tag to compare

Features

  • PHPUnit extension compatible with PHPUnit 11, 12, and 13

  • Enforces a configurable minimum total line coverage (default 100%)

  • Configured via phpunit.xml(.dist):

    <extensions>
        <bootstrap class="Superscript\PhpunitCoverage\Extension">
            <parameter name="minimum" value="100"/>
        </bootstrap>
    </extensions>
  • Prints a colored PASS / FAIL badge with the actual and required percentages after PHPUnit's coverage report

  • Exits non-zero when coverage is below the minimum, when run with --coverage-*

  • Soft-passes locally when coverage is disabled; hard-fails on CI (detected via the CI env var)