toReportSummary method

String toReportSummary()

Implementation

String toReportSummary() {
  final status = success ? 'SUCCESS' : 'FAILED';
  final buffer = StringBuffer();
  buffer.writeln('MetaMantle Build Report\n');
  buffer.writeln('Strategy:                ${renderingStrategy.id}');
  buffer.writeln('Mode:                    ${mode.name}');
  buffer.writeln('Routes discovered:       $routesDiscovered');
  buffer.writeln('Routes rendered:         $routesRendered');
  buffer.writeln('Components serialized:   $componentsSerialized');
  buffer.writeln('Dynamic routes:          $dynamicRoutes');
  buffer.writeln('Metadata errors:         $metadataErrors');
  buffer.writeln('Unsupported components:  $unsupportedComponents');
  buffer.writeln('Missing route content:   $missingRouteContent');
  buffer.writeln('Asset errors:            $assetErrors');
  buffer.writeln('HTML validation errors:  $htmlValidationErrors\n');
  buffer.write('Status: $status');
  return buffer.toString();
}