typespec-bdd
Version:
BDD framework for TypeScript.
42 lines (41 loc) • 1.46 kB
TypeScript
export interface ITestReporter {
summary(featureTitle: string, scenarioTitle: string, isSuccess: boolean): void;
error(featureTitle: string, condition: string, error: Error): void;
information(message: string): void;
complete(): void;
}
export interface ITestHooks {
beforeTestRun(): void;
beforeFeature(): void;
beforeScenario(): void;
beforeCondition(): void;
afterCondition(): void;
afterScenario(): void;
afterFeature(): void;
afterTestRun(): void;
}
export declare class TestHooks implements ITestHooks {
beforeTestRun(): void;
beforeFeature(): void;
beforeScenario(): void;
beforeCondition(): void;
afterCondition(): void;
afterScenario(): void;
afterFeature(): void;
afterTestRun(): void;
}
export declare class TestReporter implements ITestReporter {
summary(featureTitle: string, scenarioTitle: string, isSuccess: boolean): void;
error(featureTitle: string, condition: string, error: Error): void;
information(message: string): void;
complete(): void;
protected escape(input: string): string;
}
export declare class TapReporter implements ITestReporter {
private hash;
private results;
summary(featureTitle: string, scenarioTitle: string, isSuccess: boolean): void;
error(featureTitle: string, condition: string, error: Error): void;
information(message: string): void;
complete(): void;
}