BadgeGenerator class
Generates SVG CI/CD status badges from stress test reports.
Follows standard shields.io SVG badge formatting for embedding in README files and CI build artifacts.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generate(
{required String label, required String value, String color = '#4c1'}) → String -
Generates a custom SVG badge with given
label,value, andcolor. -
generateBadge(
StressReport report, {BadgeType type = BadgeType.status}) → String -
Generates a badge SVG string based on
reportandtype. -
generateLatencyBadge(
StressReport report) → String -
Generates a duration / latency badge (
stress duration | 120ms). -
generateMemoryBadge(
StressReport report) → String -
Generates a peak memory usage badge (
peak memory | 145.2MBorN/A). -
generateStatusBadge(
StressReport report) → String -
Generates an overall status badge (
SATE AI | PASSorSATE AI | FAIL). -
generateTestsBadge(
StressReport report) → String -
Generates a test pass count badge (
stress tests | 5/5 passed). -
saveBadge(
String filePath, String svgContent) → Future< void> -
Saves an SVG badge string to
filePath.