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-agg is 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 a Test2::Plugin::Cover subclass πŸ’œ.
  • --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 β€” use Test2::Plugin::Cover to collect coverage data for what files are touched by what tests ✨. Unlike Devel::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 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