UNPKG

@wdio/appium-service

Version:
24 lines 1.07 kB
import type { Frameworks } from '@wdio/types'; import type { TestContext } from '../types.js'; /** * Extracts the test file path from a test or suite object. * Follows the same pattern as wdio-spec-reporter for consistency. * * For suites: uses suite.file directly (works for Mocha, Jasmine, Cucumber) * For tests: uses test.file if available, otherwise gets from parent suite */ export declare function extractTestFile(test?: Frameworks.Test, suite?: Frameworks.Suite): string | undefined; /** * Extracts the suite name from a test object. */ export declare function extractSuiteName(test?: Frameworks.Test): string; /** * Extracts the test name from a test object. */ export declare function extractTestName(test?: Frameworks.Test): string; /** * Builds a complete test context object from a test object and test file. * Note: Line numbers are not included here as they require a specific selector to search for. */ export declare function buildTestContext(test?: Frameworks.Test, testFile?: string): TestContext; //# sourceMappingURL=test-context.d.ts.map