Class CoverageOutputFormatter.HtmlCoverageFormatter
java.lang.Object
org.ek9lang.cli.CoverageOutputFormatter.HtmlCoverageFormatter
- All Implemented Interfaces:
CoverageOutputFormatter
- Enclosing interface:
CoverageOutputFormatter
public static final class CoverageOutputFormatter.HtmlCoverageFormatter
extends Object
implements CoverageOutputFormatter
HTML coverage format that generates an interactive dashboard and source views.
Used with -t6 flag. Generates:
- .ek9/coverage/index.html - Dashboard with SVG charts and module breakdown
- .ek9/coverage/files/*.html - Per-file source views with line highlighting
- .ek9/coverage/*.css, *.js - Supporting resources
Features that surpass JaCoCo:
- SVG donut charts (not colored divs)
- Dark/light theme toggle with localStorage persistence
- Module search/filter
- Mobile-responsive design
- Uncovered hotspots section
- Line-by-line source highlighting with branch badges
-
Nested Class Summary
Nested classes/interfaces inherited from interface CoverageOutputFormatter
CoverageOutputFormatter.DetailedCoverageFormatter, CoverageOutputFormatter.HtmlCoverageFormatter, CoverageOutputFormatter.HumanCoverageFormatter, CoverageOutputFormatter.JacocoXmlCoverageFormatter, CoverageOutputFormatter.JsonCoverageFormatter, CoverageOutputFormatter.TerseCoverageFormatter, CoverageOutputFormatter.VerboseCoverageFormatter -
Field Summary
Fields inherited from interface CoverageOutputFormatter
COVERAGE_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionHtmlCoverageFormatter(PackageDetails packageDetails, String sourceDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(PrintStream out) Format and output coverage results.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoverageOutputFormatter
formatToFile
-
Constructor Details
-
HtmlCoverageFormatter
HtmlCoverageFormatter(PackageDetails packageDetails, String sourceDirectory)
-
-
Method Details
-
format
Description copied from interface:CoverageOutputFormatterFormat and output coverage results.- Specified by:
formatin interfaceCoverageOutputFormatter- Parameters:
out- The output stream to write to
-