Skip to main content

BettererSuiteSummary

API > @betterer/betterer > BettererSuiteSummary

The summary of a BettererSuite suite. Includes everything from BettererSuite.

Signature

export interface BettererSuiteSummary extends BettererSuite 
Extends: [BettererSuite](/betterer/docs/betterer.betterersuite)

Remarks

You can get the BettererSuiteSummary via the BettererReporter interface.

Example 1

const myReporter: BettererReporter = {
// Access the summary after the suite has ended:
suiteEnd (suiteSummary: BettererSuiteSummary) {
// ...
}
}

or by using BettererReporter's Promise-based lifecycle interface:

Example 2

const myReporter: BettererReporter = {
// Access the summary after the suite has ended:
suiteStart (suite: BettererSuite, lifecycle: Promise<BettererSuiteSummary>) {
const summary: BettererSuiteSummary = await lifecycle;
// ...
}
}

Properties

PropertyTypeDescription
betterBettererRunSummariesAn array containing a BettererRunSummary for each test that got better.
changedBettererTestNamesAn array of the names of tests that have changed since they were previously run. This includes tests that were deleted, tests that are new, tests that got better or worse, and tests that stayed the same but still changed in some way.
completedBettererRunSummariesAn array containing a BettererRunSummary for each test that met its goal.
expiredBettererRunSummariesAn array containing a BettererRunSummary for each test that has expired.
failedBettererRunSummariesAn array containing a BettererRunSummary for each test that failed.
newBettererRunSummariesAn array containing a BettererRunSummary for each test that was run for the first time.
ranBettererRunSummariesAn array containing a BettererRunSummary for each test that didn't fail and wasn't skipped.
runSummariesBettererRunSummariesAn array containing a BettererRunSummary for each test in the test definition file.
sameBettererRunSummariesAn array containing a BettererRunSummary for each test that stayed the same.
skippedBettererRunSummariesAn array containing a BettererRunSummary for each test that was skipped.
updatedBettererRunSummariesAn array containing a BettererRunSummary for each test that got worse, but the --update option was enabled.
worseBettererRunSummariesAn array containing a BettererRunSummary for each test that got worse.