forked from pkgxdev/ossapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.ts
59 lines (56 loc) · 1.24 KB
/
wdio.conf.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import type { Options } from "@wdio/types";
import { join } from "path";
import { getDirname } from "cross-dirname";
const dirname = getDirname();
const productName = "ossapp";
process.env.TEST = "true";
export const config: Options.Testrunner = {
runner: "local",
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
project: "./test/tsconfig.json",
transpileOnly: true
}
},
specs: ["./test/specs/**/*.e2e.ts"],
exclude: [
// 'path/to/excluded/files'
],
maxInstances: 1,
capabilities: [
{
// capabilities for local browser web tests
browserName: "chrome" // or "firefox", "microsoftedge", "safari"
}
],
logLevel: "error",
bail: 0,
baseUrl: "http://localhost",
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 5,
services: [
[
"electron",
{
appPath: join(dirname, "dist"),
appName: productName,
appArgs: [],
chromedriver: {
port: 9519,
logFileName: "wdio-chromedriver.log"
},
electronVersion: "22.1.0"
}
]
],
framework: "mocha",
reporters: ["spec"],
mochaOpts: {
ui: "bdd",
timeout: 120000
},
specFileRetries: 2,
specFileRetriesDelay: 5
};