Documentation Home
This page is for an older version of Jasmine (2.9).
The current stable version of Jasmine is: 5.4. You can also look at the docs for the next release: Edge

Interface: Reporter

Reporter

This represents the available reporter callback for an object passed to Env#addReporter.

Methods

jasmineDone(suiteInfo)

When the entire suite has finished execution jasmineDone is called

Parameters:
Name Type Description
suiteInfo JasmineDoneInfo

Information about the full Jasmine suite that just finished running.

jasmineStarted(suiteInfo)

jasmineStarted is called after all of the specs have been loaded, but just before execution starts.

Parameters:
Name Type Description
suiteInfo JasmineStartedInfo

Information about the full Jasmine suite that is being run

specDone(result)

specDone is invoked when an it and its associated beforeEach and afterEach functions have been run.

While jasmine doesn't require any specific functions, not defining a specDone will make it impossible for a reporter to know when a spec has failed.

Parameters:
Name Type Description
result SpecResult

specStarted(result)

specStarted is invoked when an it starts to run (including associated beforeEach functions)

Parameters:
Name Type Description
result SpecResult

Information about the individual it being run

suiteDone(result)

suiteDone is invoked when all of the child specs and suites for a given suite have been run

While jasmine doesn't require any specific functions, not defining a suiteDone will make it impossible for a reporter to know when a suite has failures in an afterAll.

Parameters:
Name Type Description
result SuiteResult

suiteStarted(result)

suiteStarted is invoked when a describe starts to run

Parameters:
Name Type Description
result SuiteResult

Information about the individual describe being run