playwright-trx-reporter
Version:
TRX reporter for playwright
43 lines (42 loc) • 1.34 kB
TypeScript
import { IDSimpleType, TestListType, TestRunType, UnitTestResultType } from './trxModel';
export declare const RESULT_NOT_IN_A_LIST_ID: IDSimpleType;
export declare const ALL_LOADED_RESULTS_ID: IDSimpleType;
export declare const resultsNotInAList: TestListType;
export declare const allLoadedResults: TestListType;
export declare const NAME_SPLITTER = " > ";
export interface TestRunBuilderOptions {
id: IDSimpleType;
name: string;
runUser: string;
startTime: string;
endTime: string;
}
export interface AddTestResultOptions {
testDefinitionAdditionalInfo: {
owner?: string;
priority?: number;
workItemIds?: string[];
fileLocation: string;
/**
* Use the title path(not including current title) as "class name" for js.
*/
className: string;
};
}
/**
* Create a whole trx object, which could be serilized by {@link serialize2Xml}
*/
export declare class TestRunBuilder {
private _testRun;
private _Results;
private _TestDefinitions;
private _TestEntries;
private _TestLists;
private _Counters;
private _Times;
private _isBuilt;
constructor(options: TestRunBuilderOptions);
addTestResult(testResult: UnitTestResultType, options: AddTestResultOptions): void;
private count;
build(): TestRunType;
}