folio
Version:
A customizable test framework to build your own test frameworks. Foundation for the [Playwright test runner](https://github.com/microsoft/playwright-test).
48 lines • 1.5 kB
TypeScript
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Config } from '../config';
import { EmptyReporter } from '../reporter';
import { Suite, TestError } from '../test';
export interface SerializedSuite {
title: string;
file: string;
column: number;
line: number;
specs: ReturnType<JSONReporter['_serializeTestSpec']>[];
suites?: SerializedSuite[];
}
export declare type ReportFormat = {
config: Config;
errors?: {
error: TestError;
}[];
suites?: SerializedSuite[];
};
declare class JSONReporter extends EmptyReporter {
config: Config;
suite: Suite;
private _errors;
onBegin(config: Config, suite: Suite): void;
onTimeout(): void;
onError(error: TestError): void;
onEnd(): void;
private _serializeSuite;
private _serializeTestSpec;
private _serializeTest;
private _serializeTestResult;
}
export default JSONReporter;
//# sourceMappingURL=json.d.ts.map