html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
26 lines (25 loc) • 750 B
TypeScript
import { TestStatus } from '../../constants';
import type { ReporterTestResult } from '../test-result';
import type { AssertViewResult } from '../../types';
export interface CreateTestResultOpts {
status: TestStatus;
attempt?: number;
assertViewResults?: AssertViewResult[];
error?: Error;
sessionId?: string;
meta?: {
url?: string;
};
duration: number;
}
export interface TestAdapter {
readonly id: string;
readonly pending: boolean;
readonly disabled: boolean;
readonly silentlySkipped: boolean;
readonly browserId: string;
readonly fullName: string;
readonly file: string;
readonly titlePath: string[];
createTestResult(opts: CreateTestResultOpts): ReporterTestResult;
}