@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
56 lines • 1.77 kB
TypeScript
type OrderingInstrumentationValue = string | number | boolean | null;
/**
* Handles test orchestration operations
*/
export declare class TestOrchestrationHandler {
private static _instance;
private config;
private testOrderingServerHandler;
private orchestrationUtils;
private orderingInstrumentationData;
private testOrderingApplied;
private isTestOrderingEnabled;
/**
* @param config Service configuration
*/
constructor(config: Record<string, unknown>);
/**
* Get or create an instance of TestOrchestrationHandler
*/
static getInstance(config: Record<string, unknown>): TestOrchestrationHandler;
/**
* Checks if test ordering is enabled
* Do not apply test ordering when:
* - O11y is not enabled
* - Ordering is not enabled
* - projectName is None
* - buildName is None
*/
testOrderingEnabled(): boolean;
/**
* Checks if observability is enabled
*/
private _isObservabilityEnabled;
/**
* Checks if test ordering checks should be logged
*/
shouldLogTestOrderingChecks(): boolean;
/**
* Logs test ordering checks
*/
logTestOrderingChecks(): void;
/**
* Reorders test files based on the orchestration strategy
*/
reorderTestFiles(testFiles: string[]): Promise<string[] | null>;
/**
* Adds data to the ordering instrumentation data
*/
addToOrderingInstrumentationData(key: string, value: OrderingInstrumentationValue): void;
/**
* Gets the ordering instrumentation data
*/
getOrderingInstrumentationData(): Record<string, OrderingInstrumentationValue>;
}
export default TestOrchestrationHandler;
//# sourceMappingURL=testorcherstrationhandler.d.ts.map