Devel::...ecovbash(3)

πŸ“¦ version 0.43.0, in opensuse-leap 16.0

✨ 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> πŸ’–

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