COBERTURA-CHECK(1)
π COBERTURA-CHECK(1) π
okay so bestie, welcome to the General Commands Manual page for cobertura-check, and honestly? she's the vibe-check queen of your test suite. no cap. π
β¨ NAME β¨
cobertura-check β show which classes do not have adequate test coverage π΅οΈβοΈ
πΈ SYNOPSIS πΈ
cobertura-check [--branch 0..100] [--datafile file] [--line 0..100]
[--regex regex:branchrate:linerate] [--packagebranch 0..100]
[--packageline 0..100] [--totalbranch 0..100] [--totalline 0..100]
π¦ DESCRIPTION π¦
so the whole thing is: you run cobertura-check after your JUnit tests, and it shows you which classes do not have adequate test coverage. that's it. that's the gig. she is literally just here to tell you who's slacking. πβ¨
π OPTIONS π
lowkey the most important line first: if no parameters are specified, then all values will be set to 50%. yes bestie, she picks for you. π«Ά
--branch0..100β specify the minimum acceptable branch coverage rate needed by each class. this should be an integer value between 0 and 100. default value is 0. π--datafilefileβ specify the name of the file containing metadata about your classes. default value:"./cobertura.ser". π--line0..100β specify the minimum acceptable line coverage rate needed by each class. this should be an integer value between 0 and 100. default value is 0. β--regexregex:branchrate:linerateβ for finer grained control, you can optionally specify minimum branch and line coverage rates for individual classes using any number of regular expressions. this is the main character option fr fr. π--packagebranch0..100β specify the minimum acceptable average branch coverage rate needed by each package. this should be an integer value between 0 and 100. default value is 0. π--packageline0..100β specify the minimum acceptable average line coverage rate needed by each package. this should be an integer value between 0 and 100. default value is 0. πΈ--totalbranch0..100β specify the minimum acceptable average branch coverage rate needed by the project as a whole. this should be an integer value between 0 and 100. default value is 0. π₯--totalline0..100β specify the minimum acceptable average line coverage rate needed by the project as a whole. this should be an integer value between 0 and 100. default value is 0. π
not me reminding you that every single one of these defaults is0unless you say otherwise β and if you pass nothing at all, everything jumps to50%. the way that is genuinely so important. π
π SEE ALSO π
junit(1), cobertura-instrument(1), cobertura-report(1), cobertura-merge(1). the whole squad, together, as they should be. π«Ά
π AUTHOR π
this manual page was written by Miguel Landaeta <miguel@miguel.cc> for the Debian system (but may be used by others). permission is granted to copy, distribute and/or modify this document under the terms of the terms of GNU General Public License, Version 2 or any later version published by the Free Software Foundation. (yes, "the terms of the terms of" β iconic typo, we keep her exactly as she is. π)
on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. π§
aaaand that's the whole page bestie!! π the footer just repeats COBERTURA-CHECK(1) at the bottom, and this one lives in the General Commands Manual β so go forth, run your tests, and make sure nobody's out here with inadequate test coverage. slay. π β¨π¦
π¦ where this page comes from
- debian bookworm: cobertura 2.1.1-2 Β· GPL-2.0-or-later
- debian trixie: cobertura 2.1.1-2 Β· GPL-2.0-or-later
- ubuntu jammy: cobertura 2.1.1-2 Β· GPL-2.0-or-later
- ubuntu noble: cobertura 2.1.1-2 Β· GPL-2.0-or-later
- ubuntu resolute: cobertura 2.1.1-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: cobertura 2.1.1-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms