App::Y...:Cover(3pm)
π App::Y...:Cover π
okay bestie, gather round, because we're talking about App::Yath::Plugin::Cover β a plugin from the User Contributed Perl Documentation β¨ (the manual's literally called App::Y...:Cover(3pm) if you're being formal about it, iykyk).
πΈ NAME πΈ
App::Yath::Plugin::Cover β the plugin that collects and reports your basic coverage data π«Ά
β¨ DESCRIPTION β¨
So likeβ¦ it does simple coverage data, okay? File and sub coverage only. That's the whole vibe. π
If you want the deep coverage stats, the messy detailed ones, the ones that cost you everything β you go use Devel::Cover instead. No cap. This plugin is giving "quick vibe check," not "full forensic investigation." π΅οΈββοΈ
π PROVIDED OPTIONS π
π COMMAND OPTIONS π
π¦ Cover Options π¦
--cover-aggregator ByTest,--cover-aggregator ByRun,--cover-aggregator +Custom::Aggregator,--cover-agg ByTest,--cover-agg ByRun,--cover-agg +Custom::Aggregator,--no-cover-aggregatorβ pick a custom aggregator subclass, bestie, you get to choose π. (--cover-aggis literally just the short little nickname for--cover-aggregator, they're the same thing, obsessed.)--cover-class ARG,--cover-class=ARG,--no-cover-classβ choose aTest2::Plugin::Coversubclass π.--cover-dirs ARG,--cover-dirs=ARG,--cover-dir ARG,--cover-dir=ARG,--no-cover-dirsβ NO DESCRIPTION - FIX ME π (not me reading the manpage and it just says that, iconic honesty though fr fr)
Can be specified multiple times.
--cover-exclude-private,--no-cover-exclude-private,--cover-files,--no-cover-filesβ useTest2::Plugin::Coverto collect coverage data for what files are touched by what tests β¨. UnlikeDevel::Cover, this has very little performance impact (like, about 4% difference). Four percent!! That's basically nothing, main character energy for real π .--cover-from path/to/log.jsonl,--cover-from http://example.com/coverage,--cover-from path/to/coverage.jsonl,--no-cover-fromβ this can be a test log, a coverage dump (old style json OR new jsonl format), or a url pointing at any of the previous ones π«Ά.
β οΈ Heads up: Tests will not be run if the file/url is invalid. Periodt.
--cover-from-type json,--cover-from-type jsonl,--cover-from-type log,--no-cover-from-typeβ the file type for your coverage source π. Usually it can just detect it on its own (she's smart like that), but when it cannot, you gotta specify, bestie. Here's the tea:"json"is old style single-blob coverage data"jsonl"is the new by-test style"log"is a logfile from a previous run
--cover-manager My::Coverage::Manager,--no-cover-managerβ the coverage'from'manager to use when the coverage data doesn't provide one π.--cover-maybe-from path/to/log.jsonl,--cover-maybe-from http://example.com/coverage,--cover-maybe-from path/to/coverage.jsonl,--no-cover-maybe-fromβ same deal as--cover-from: a test log, a coverage dump (old style json or new jsonl format), or a url to any of those β¨. The difference? Tests will coninue if even if the coverage file/url is invalid. π (yes, "coninue" β that's literally what the manpage says, I am NOT fixing it, we respect the source β)--cover-maybe-from-type json,--cover-maybe-from-type jsonl,--cover-maybe-from-type log,--no-cover-maybe-from-typeβ same as"from_type"but for"maybe_from"π¦. Defaults to"from_type"if that's specified, otherwise it auto-detects π.--cover-metrics,--no-cover-metrics,--cover-types ARG,--cover-types=ARG,--cover-type ARG,--cover-type=ARG,--no-cover-typesβ NO DESCRIPTION - FIX ME π again, sorry bestie, that's all she gives us
Can be specified multiple times.
--cover-write,--cover-write=coverage.jsonl,--cover-write=coverage.json,--no-cover-writeβ create a json or jsonl file of all coverage data seen during the run πβ¨π₯. (This implies--cover-files.) So good. So thorough. Slay.
π SOURCE π
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/ β go peek, go star it, go be nosy π«Ά
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
Copyright 2020 Chad Granum <exodist7@gmail.com> β.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself π .
See http://dev.perl.org/licenses/
and that's the whole page, bestie π¦β¨ ty for coming to my ted talk, no notes, she ate. this was perl v5.40.1, dated 2026-05-10, from App::Y...:Cover(3pm) π mwah π«ΆπΈπ
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms