UNPKG

@serenity-js/jasmine

Version:

Serenity/JS test runner adapter for Jasmine, enabling the use of the Screenplay Pattern in Jasmine-based test suites and leveraging Serenity/JS reporting capabilities

44 lines (32 loc) 1.36 kB
import type { Expectation } from './Expectation.js'; import type { Location } from './Location.js'; export interface SpecResult { /** The unique id of this spec. */ id: string; /** The description passed to the 'it' that created this spec. */ description: string; /** The full description including all ancestors of this spec. */ fullName: string; /** The list of expectations that failed during execution of this spec. */ failedExpectations: Expectation[]; /** The list of expectations that passed during execution of this spec. */ passedExpectations: Expectation[]; /** The list of deprecation warnings that occurred during execution this spec. */ deprecationWarnings: Expectation[]; /** If the spec is pending, this will be the reason. */ pendingReason: string; /** Once the spec has completed, this string represents the pass/fail status of this spec. */ status?: string; /** The time in ms used by the spec execution, including any before/afterEach. */ duration: number | null; /** * The file system location of the spec. * Available in Jasmine 5.x and earlier when monkey-patched by Serenity/JS. */ location?: Location; /** * The filename where the spec is defined. * Available in Jasmine 6.x and later. */ filename?: string; }