COBERTURA-REPORT(1)
π COBERTURA-REPORT β bestie, it's giving coverage report energy
okay so real talk, this is the cobertura-report(1) page from the General Commands Manual, and it's literally the girl that turns your dusty source tree into a whole coverage glow-up. let's get into it π
β¨ NAME β¨
cobertura-report β generate coverage reports. that's it, that's the vibe. slay.
π¦ SYNOPSIS π¦
cobertura-report [--datafile file] --destination dir [--format
html|xml] [--encoding encoding] directory [--basedir dir]
yes bestie, that's the whole shape of it. --destination is the only one that's non-negotiable, everything else is optional but you want it, trust. π
πΈ DESCRIPTION πΈ
okay so here's the tea: cobertura-report generates coverage reports from the source code directories. and not just any reports β it also calculates the cyclomatic code complexity of each class, which is such a main character metric ngl. π§
and the HTML reports? they're not just numbers, they're annotated versions of each source file, showing which lines of code were exercised. so you can literally scroll through your own code and see which lines got the attention they deserved and which ones are sitting there unvisited like π. iconic behaviour fr fr.
π OPTIONS π
--datafilefile β specify the name of the file containing metadata about your classes. default value:"./cobertura.ser". this is where your class lore lives, don't lose it π--basedirdir β specify a directory containing source code. all files listed after this are assumed to be underneath this directory. lowkey important: this should only be used if you want to include only a few specific files underneath a source tree and exclude all other files. so like, it's the pick-me option, but for files. use it on purpose. π«Ά--destinationdir β specify the output directory for the report. this one's required, bestie. no destination, no report, no vibes. β¨--formatxml|htmlβ the type of report you want to generate. default value:html. pick your fighter. π₯--encodingencoding β specify the encoding used to read the source. see javadocs forjava.nio.charset.Charsetfor more details. if your source files are speaking a different language, this is how you tell cobertura to learn it. π
π SEE ALSO π
go read these next, they're the rest of the friend group:
π 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. π
okay so real talk on the Debian systems tip: the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. no cap, it's just sitting there. π
and that's a wrap, bestie π«Ά this was COBERTURA-REPORT(1) from the General Commands Manual, source/version and date all folded into this cute little sign-off. go generate some reports and make your code feel seen. periodt. π
β¨πΈ
π¦ 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