1 export const config = {
3 // ====================
4 // Runner Configuration
5 // ====================
11 // Define which test specs should run. The pattern is relative to the directory
12 // from which `wdio` was called.
14 // The specs are defined as an array of spec files (optionally using wildcards
15 // that will be expanded). The test for each spec file will be run in a separate
16 // worker process. In order to have a group of spec files run in the same worker
17 // process simply enclose them in an array within the specs array.
19 // If you are calling `wdio` from an NPM script (see https://docs.npmjs.com/cli/run-script),
20 // then the current working directory is where your `package.json` resides, so `wdio`
21 // will be called from there.
24 './src/**/*.e2e-spec.ts'
26 // Patterns to exclude.
28 // 'path/to/excluded/files'
31 // ===================
32 // Test Configurations
33 // ===================
34 // Define all options that are relevant for the WebdriverIO instance here
36 // Level of logging verbosity: trace | debug | info | warn | error | silent
39 // Set specific log levels per logger
41 // - webdriver, webdriverio
42 // - @wdio/browserstack-service, @wdio/devtools-service, @wdio/sauce-service
43 // - @wdio/mocha-framework, @wdio/jasmine-framework
44 // - @wdio/local-runner
45 // - @wdio/sumologic-reporter
46 // - @wdio/cli, @wdio/config, @wdio/utils
47 // Level of logging verbosity: trace | debug | info | warn | error | silent
50 // '@wdio/appium-service': 'info'
53 // If you only want to run your tests until a specific amount of tests have failed use
54 // bail (default is 0 - don't bail, run all tests).
57 // Set a base URL in order to shorten url command calls. If your `url` parameter starts
58 // with `/`, the base url gets prepended, not including the path portion of your baseUrl.
59 // If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
60 // gets prepended directly.
61 baseUrl: 'http://localhost:9001',
63 // Default timeout for all waitFor* commands.
66 // Default timeout in milliseconds for request
67 // if browser driver or grid doesn't send response
68 connectionRetryTimeout: 120000,
70 // Default request retries count
71 connectionRetryCount: 3,
73 // Framework you want to run your specs with.
74 // The following are supported: Mocha, Jasmine, and Cucumber
75 // see also: https://webdriver.io/docs/frameworks
77 // Make sure you have the wdio adapter package for the specific framework installed
78 // before running any tests.
81 // The number of times to retry the entire specfile when it fails as a whole
84 // Delay in seconds between the spec file retry attempts
85 // specFileRetriesDelay: 0,
87 // Whether or not retried specfiles should be retried immediately or deferred to the end of the queue
88 // specFileRetriesDeferred: false,
90 // Test reporter for stdout.
91 // The only one supported by default is 'dot'
92 // see also: https://webdriver.io/docs/dot-reporter
93 reporters: [ 'spec' ],
96 // Options to be passed to Mocha.
97 // See the full list at http://mochajs.org/
107 project: require('path').join(__dirname, './tsconfig.json')
111 before: function () {
112 require('expect-webdriverio')
113 require('./src/commands/upload')
115 } as Partial<WebdriverIO.Config>