-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
137 lines (137 loc) · 5.53 KB
/
schema.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"title": "Run detox test",
"description": "Run detox test options",
"type": "object",
"cli": "nx",
"properties": {
"detoxConfiguration": {
"type": "string",
"description": "Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it",
"alias": "C",
"examples": [
"ios.sim.debug",
"ios.sim.release",
"android.emu.debug",
"android.emu.release"
]
},
"buildTarget": {
"type": "string",
"description": "Target which builds the application"
},
"configPath": {
"type": "string",
"description": "Specify Detox config file path. If not supplied, detox searches for .detoxrc[.js] or \"detox\" section in package.json",
"alias": "cp"
},
"runnerConfig": {
"type": "string",
"description": "Test runner config file, defaults to 'e2e/mocha.opts' for mocha and 'e2e/config.json' for jest.",
"alias": "o"
},
"deviceName": {
"type": "string",
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
"alias": "n"
},
"loglevel": {
"type": "string",
"enum": ["fatal", "error", "warn", "info", "verbose", "trace"],
"description": "Log level: fatal, error, warn, info, verbose, trace",
"alias": "l"
},
"debugSynchronization": {
"type": "boolean",
"description": "Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.",
"alias": "d"
},
"artifactsLocation": {
"type": "string",
"description": "Artifacts (logs, screenshots, etc) root directory.",
"alias": "a"
},
"recordLogs": {
"type": "string",
"enum": ["failing", "all", "none"],
"description": "Save logs during each test to artifacts directory. Pass \"failing\" to save logs of failing tests only."
},
"takeScreenshots": {
"type": "string",
"enum": ["manual", "failing", "all", "none"],
"description": "Save screenshots before and after each test to artifacts directory. Pass \"failing\" to save screenshots of failing tests only. "
},
"recordVideos": {
"type": "string",
"enum": ["failing", "all", "none"],
"description": "Save screen recordings of each test to artifacts directory. Pass \"failing\" to save recordings of failing tests only."
},
"recordPerformance": {
"type": "string",
"enum": ["all", "none"],
"description": "[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory."
},
"recordTimeline": {
"type": "string",
"enum": ["all", "none"],
"description": "[Jest Only] Record tests and events timeline, for visual display on the chrome://tracing tool."
},
"captureViewHierarchy": {
"type": "string",
"enum": ["enabled", "disabled"],
"description": "[iOS Only] Capture *.uihierarchy snapshots on view action errors and device.captureViewHierarchy() calls."
},
"retries": {
"type": "number",
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or <N> times at least."
},
"reuse": {
"type": "boolean",
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run."
},
"cleanup": {
"type": "boolean",
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue"
},
"workers": {
"type": "number",
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest)."
},
"jestReportSpecs": {
"type": "boolean",
"description": "[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers."
},
"headless": {
"type": "boolean",
"description": "Android Only] Launch Emulator in headless mode. Useful when running on CI."
},
"gpu": {
"type": "boolean",
"description": "[Android Only] Launch Emulator with the specific -gpu [gpu mode] parameter."
},
"deviceLaunchArgs": {
"type": "string",
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox."
},
"appLaunchArgs": {
"type": "number",
"description": "Custom arguments to pass (through) onto the app every time it is launched."
},
"noColor": {
"type": "boolean",
"description": "Disable colors in log output"
},
"useCustomLogger": {
"type": "boolean",
"description": "Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to node.js / test-runner's implementation (e.g. Jest / Mocha)."
},
"forceAdbInstall": {
"type": "boolean",
"description": "Due to problems with the adb install command on Android, Detox resorts to a different scheme for install APK's. Setting true will disable that and force usage of adb install, instead."
},
"inspectBrk": {
"type": "boolean",
"description": "Uses node's --inspect-brk flag to let users debug the jest/mocha test runner"
}
},
"required": ["detoxConfiguration"]
}