Devel::...ecovbash(3)
β¨ Devel::Cover::Report::Codecovbash β¨
okay bestie, welcome to the glow-up of a page from the User Contributed Perl Documentation β yes, that's the manual name, and yes, it's giving "the docs were written by a real one" π
π NAME π
Devel::Cover::Report::Codecovbash β the whole entire module. lowercase icon behaviour, no notes.
π ABSTRACT π
It makes a JSON file ποΈ so you can upload it with the codecov bash script. that's the vibe. that's the whole job. slay.
π¦ DESCRIPTION π¦
So this right here is a coverage reporter for Codecov π―. It generates a JSON file that you can upload with the bash script that codecov provides. if you want the deets, the docs for that live at <https://docs.codecov.io/docs/about-the-codecov-bash-uploader>.
The file it makes is named codecov.json and by default it lands in the cover_db directory π. default setting, iconic, no cap.
Real talk though β hun, nearly all of the code in this distribution was just copied straight from Pine Mizune's Devel-Cover-Report-Codecov distribution, which is at <https://metacpan.org/release/Devel-Cover-Report-Codecov> π«Ά. giving credit where credit is due, that's the energy.
π UPLOADING RESULTS π
Use the codecov bash script, fr fr:
cover -report codecovbash
bash <(curl -s https://codecov.io/bash) -t token -f cover_db/codecov.json
like that's it. two lines. main character commands only π.
π§ CONFIGURATION π§
π DEVEL_COVER_CODECOVBASH_COVER_ALL_STATEMENTS
so this one's been around since version v0.43 β.
Here's the situation: Codecov measures line coverage, but Devel::Cover returns statement coverage π. so we literally have to decide whether a line counts as covered when at least one statement in that line is covered, or when all of them are.
By default, a line is reported as covered if at least one statement is covered π.
But you can set DEVEL_COVER_CODECOVBASH_COVER_ALL_STATEMENTS to true, and then all statements in a line must be covered before that line gets the crown π:
DEVEL_COVER_CODECOVBASH_COVER_ALL_STATEMENTS=1 cover -report codecovbash
no in-between, bestie β it's either one statement or every single statement, pick your fighter π
π₯ SOURCE π₯
The source code repository for Devel-Cover-Report-Codecovbash lives at <https://github.com/perlpunk/Devel-Cover-Report-Codecovbash> πΈ. go look, go star, go be nosy.
π AUTHOR π
Tina MΓΌller <tinita@cpan.org> π
β CONTRIBUTORS β
- Dave Rolsky
<autarch@urth.org>π«Ά - Tina MΓΌller
<cpan2@tinita.de>π
πΈ COPYRIGHT AND LICENSE πΈ
This software is Copyright (c) 2019 - 2021 by Pine Mizune π.
This is free software, licensed under:
The MIT (X11) License
The full text of the license can be found in the LICENSE file included with this distribution π. read it, it's literally right there.
and that's the page!! written against perl v5.42.0, dated 2026-07-22 β mwah, go upload your codecov.json and get that coverage clout π
β¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Devel-Cover-Report-Codecovbash 0.43.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms