TwirlSpecReporter

io.github.frikit.twirlspec.TwirlSpecReporter
See theTwirlSpecReporter companion object
class TwirlSpecReporter(directory: Path) extends Reporter

A report of a test run, as a page to read and as Markdown for a CI summary: how many tests passed, failed, warned and were cancelled, how long they took, and each suite's tests, with a catalogue's checks laid out as a table of rules by language and every failure's message beside it.

Add it to a run, in build.sbt:

Test / testOptions += Tests.Argument(
 TestFrameworks.ScalaTest, "-C", "io.github.frikit.twirlspec.TwirlSpecReporter"
)

It writes index.html and report.md to target/twirl-spec-report, or to the directory the twirlspec.report.dir system property or the TWIRLSPEC_REPORT_DIR environment variable names, as each suite finishes and when the run does, and then says where.

Attributes

Companion
object
Source
TwirlSpecReporter.scala
Graph
Supertypes
trait Reporter
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this()

The reporter ScalaTest's -C makes, writing where it is told to.

The reporter ScalaTest's -C makes, writing where it is told to.

Attributes

Source
TwirlSpecReporter.scala

Concrete methods

def apply(event: Event): Unit

Invoked to report an event that subclasses may wish to report in some way to the user.

Invoked to report an event that subclasses may wish to report in some way to the user.

Value parameters

event

the event being reported

Attributes

Source
TwirlSpecReporter.scala