CRYST...ERAGE(1)
π CRYST...ERAGE(1) β crystal-tool-macro_code_coverage π
okay so bestie, welcome to the Crystal Compiler Command Line Reference Guide β¨ this little page is all about crystal-tool-macro_code_coverage, one of the tools tucked inside your Crystal compiler, and honestly? it's giving "niche but iconic" π
πΈ NAME πΈ
crystal-tool-macro_code_coverage β literally generates a macro code coverage report. that's it. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
crystal tool macro_code_coverage [options] [programfile]
short, sweet, slays π«Ά
π DESCRIPTION π
So here's the tea β β this tool generates a macro code coverage report and outputs it to STDERR. Yes, STDERR, not STDOUT, stay with me here π and also? any exception that gets raised while it's computing the report goes to STDOUT instead. so the channels are a little swapped, no cap β output on STDERR, exceptions on STDOUT. that's just how it is, don't @ me π
π OPTIONS π
here's the full lineup, no skips, no cuts, we don't do that here π
-D FLAG,--define=FLAGβ defines a compile-time flag β¨ this is lowkey so useful because it lets you conditionally define types, methods, or commands depending on which flags are available at compile time. the default flags come from the target triple you passed with--target-triple, or from the host's default if you didn't give one at all π-f FORMAT,--format=FORMATβ picks the output format. the one and only option:codecov, and yes it's the default π-i PATH,--include=PATHβ includes a path in the output π-e PATH,--exclude=PATHβ excludes a path in the output. default islibπ--error-traceβ shows the full error trace, i.e. the whole receipts trail when something goes wrong π--preludeβ specifies the prelude to use. the default one initializes the garbage collector ποΈβ¨ you can also go--prelude=emptyto use no preludes at all β genuinely handy for checking code generation for a specific source code file π₯-s,--statsβ prints statistics about the different compiler stages for the current build. that means output time and used memory for each compiler process, so you can be nosy about where your resources went π΅οΈββοΈ-p,--progressβ prints statistics about the progress for the current build π-t,--timeβ prints statistics about the execution time β±οΈ--no-colorβ disables colored output π«π (sad, but sometimes you need it, respect)
ngl bestie, remember the channel situation: the report itself lands on STDERR, and any exception raised while computing it lands on STDOUT. that's not a typo, that's just the lore ππ
and that's the whole page, you ate it up fr fr π this was crystal 1.22.2, dated 2026-10-30 β mwah, drink some water, and go generate some coverage ππ§π
π¦ where this page comes from
- arch rolling: crystal 1.22.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms