NAME

Dist::Zilla::Plugin::DBIO::CoverageTest - Generate xt/release/coverage.t from a Devel::Cover DB

VERSION

version 0.900003

DESCRIPTION

Gathers an xt/release/coverage.t test that, after a coverage run of dzil test, reads cover_db/ and checks that statement coverage of the modules under lib/ meets a threshold. The threshold is configurable via the coverage_threshold option (default 80).

By default the test emits a TAP skip when coverage is below the threshold so a missing or low-coverage run never blocks `dzil test` for developers. Set COVERAGE_STRICT=1 or RELEASE=1 in the environment to flip the same gap into a failure -- that is how `dzil release` enforces coverage.

The test must be installed by [ExtraTests] before it counts as a real release test, so this plugin is wired into [@DBIO] before [ExtraTests] in Dist::Zilla::PluginBundle::DBIO.

ATTRIBUTES

coverage_threshold

Statement-coverage percentage required for a passing run. Default: 80.

AUTHOR

DBIO Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.