abstract class Report

Overview

Class inherited by all reports parseable by the visualizer.

Each report subclass must define the following class methods:

Direct Known Subclasses

Defined in:

report/report.cr

Class Method Summary

Macro Summary

Instance Method Summary

Class Method Detail

def self.create_sequential_id : Int32 #

Creates a sequential id used for mapping each report to a unique id.


[View source]

Macro Detail

macro patterns(*filenames) #

[View source]

Instance Method Detail

abstract def category : String #

The category this report is grouped in.

The string should be below ~20 characters to prevent the sidebar from overflowing.


[View source]
def id : Int32 #

The unique identifier for this report.


[View source]
abstract def name : String #

The name displayed for this report.

The string should be below ~20 characters to prevent the sidebar from overflowing.


[View source]
abstract def render(io : IO) : Nil #

Abstract method to create a visualization of the current report.


[View source]
abstract def status : Status #

The status of this report.

This will control the successful-test-count in the report header, filtering options and an indicator next to the test in the sidebar.


[View source]