UNPKG

webdriverio-automation

Version:

WebdriverIO-Automation android ios project

105 lines (99 loc) 2.26 kB
/// <reference types="mocha"/> /// <reference types="expect-webdriverio"/> declare module WebdriverIO { interface Config extends MochaOptsConfig {} interface Suite { file: string; title: string; parent: string; fullTitle: string; pending: boolean; } interface Test extends Suite { currentTest: string; passed: boolean; duration?: number; error?: { actual?: any; expected?: any; message: string; stack?: string; type: string; } } } interface MochaOptsConfig { mochaOpts?: MochaOpts } interface MochaOpts { /** * The `require` option is useful when you want to add or extend some * basic functionality (WebdriverIO framework option). */ require?: string | string[], /** * Use the given module(s) to compile files. Compilers will be included * before requires (WebdriverIO framework option). */ compilers?: string[], /** * Propagate uncaught errors? */ allowUncaught?: boolean; /** * Force done callback or promise? */ asyncOnly?: boolean; /** * Bail after first test failure? */ bail?: boolean; /** * Check for global variable leaks? */ checkLeaks?: boolean; /** * Delay root suite execution? */ delay?: boolean; /** * Test filter given string. */ fgrep?: string; /** * Tests marked only fail the suite? */ forbidOnly?: boolean; /** * Pending tests fail the suite? */ forbidPending?: boolean; /** * Full stacktrace upon failure? */ fullTrace?: boolean; /** * Variables expected in global scope. */ global?: string[]; /** * Test filter given regular expression. */ grep?: RegExp | string; /** * Invert test filter matches? */ invert?: boolean; /** * Number of times to retry failed tests. */ retries?: number; /** * Timeout threshold value. */ timeout?: number | string; /** * Set test UI to one of the built-in test interfaces. */ ui?: 'bdd' | 'tdd' | 'qunit' | 'exports'; }