aspnetcore/clients/ts/FunctionalTests/ts/LogBannerReporter.ts

20 lines
592 B
TypeScript

export class LogBannerReporter implements jasmine.CustomReporter {
public jasmineStarted(): void {
console.log("*** JASMINE SUITE STARTED ***");
}
public jasmineDone(): void {
console.log("*** JASMINE SUITE FINISHED ***");
}
public specStarted(result: jasmine.CustomReporterResult): void {
console.log(`*** SPEC STARTED: ${result.fullName} ***`);
}
public specDone(result: jasmine.CustomReporterResult): void {
console.log(`*** SPEC DONE: ${result.fullName} ***`);
}
}
jasmine.getEnv().addReporter(new LogBannerReporter());