forked from MobileNativeFoundation/bluepill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbluepill.1
195 lines (145 loc) · 4.23 KB
/
bluepill.1
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
.\" Bluepill help
.TH man 1 "Summer 2017" ".1" "Bluepill"
.SH NAME
bluepill \- A tool to run iOS tests in parallel using multiple
simulators.
.SH SYNOPSIS
.B bluepill
\fB\-a\fR \fI<app>\fR
\fB\-s\fR \fI<scheme>\fR
\fB\-o\fR \fI<output_directory>\fR
\fR[other_options]\fR
.B bluepill
\fB\-c\fR \fI<config_file>\fR
.SH DESCRIPTION
Bluepill is a tool to run iOS tests in parallel using multiple
simulators. It requires the app to be compiled with the flags
\fR -sdk iphonesimulator \fR
.SH OPTIONS
.TP
.BI -a/--app " <app>"
The path to the host application to execute (your .app)
.TP
.BI -s/--scheme-path " <scheme_path>"
The scheme to run tests.
.TP
.BI -d/--device " <device>"
On which device to run the app.
\fR Default Value: "iPhone 6" \fR
.TP
.BI -c/--config " <config>"
Read options from the specified configuration file instead of the
command line
.TP
.BI -C/--repeat-count " <repeat_count>"
Number of times we'll run the entire test suite (used for stability
testing).
\fR Default Value: 1 \fR
.TP
.BI -N/--no-split " <no_split>"
A list of NO split test bundles
.TP
.BI -P/--print-config " <print_config>"
Print a configuration file suitable for passing back using the `-c`
option.
\fR Default Value: stdout \fR
.TP
.BI -R/--error-retries " <error_retries>"
Number of times we'll recover from crashes to continue running the
current test suite.
\fR Default Value: 4 \fR
.TP
.BI -S/--stuck-timeout " <stuck_timeout>"
Timeout in seconds for a test that seems stuck (no output).
\fR Default Value: 300 \fR
.TP
.BI -T/--test-timeout " <test_timeout>"
Timeout in seconds for a test that is producing output.
\fR Default Value: 300 \fR
.TP
.BI -f/--failure-tolerance " <failure_tolerance>"
The number of retries on any failures (app crash/test failure).
\fR Default Value: NO \fR
.TP
.BI -i/--include " <include>"
Include a testcase in the set of tests to run (unless specified in
`exclude`).
.TP
.BI -n/--num-sims " <num_sims>"
Number of simulators to run in parallel. (bluepill only)
\fR Default Value: 4 \fR
.TP
.BI -o/--output-dir " <output_dir>"
Directory where to put output log files (bluepill only).
.TP
.BI -r/--runtime " <runtime>"
What runtime to use.
\fR Default Value: "iOS 10.2" \fR
.TP
.BI -t/--test " <test>"
The path to the test bundle to execute (your .xctest).
.TP
.BI -x/--exclude " <exclude>"
Exclude a testcase in the set of tests to run (takes priority over
`include`).
.TP
.BI -X/--xcode-path " <xcode_path>"
Path to xcode.
.TP
.BI -H/--headless " headless"
Run in headless mode (no GUI).
\fR Default Value: Off \fR
.TP
.BI -J/--json-output " json_output"
Print test timing information in JSON format.
\fR Default Value: Off \fR
.TP
.BI -h/--help " help"
This help.
.TP
.BI -p/--plain-output " plain_output"
Print results in plain text.
\fR Default Value: Off \fR
.TP
.BI -q/--quiet " quiet"
Turn off all output except fatal errors.
\fR Default Value: Off \fR
.TP
.BI -j/--junit-output " junit_output"
Print results in JUnit format.
\fR Default Value: Off \fR
.TP
.BI -F/--only-retry-failed " only_retry_failed"
If `failure-tolerance` is > 0, only retry tests that failed.
\fR Default Value: Off \fR
.TP
.BI -l/--list-tests " list_tests"
Only list tests in bundle
.TP
.BI --additional-xctests " <additional_xctests>"
Additional XCTest bundles to test.
.SH RETURN VALUE
Bluepill will exit zero on success (all tests passed) and non-zero on
any kind of failure (either from the tests or because bluepill
couldn't run them).
.EXAMPLES
$ mkdir output_directory
$ xcodebuild -workspace MyApp.xcworkspace -scheme MyScheme -sdk iphonesimulator \
build-for-testing -derivedDataPath .
$ bluepill -a ./Build/Debug-iphonesimulator/MyApp.app -s MyScheme.xcscheme -o output_directory
.SH SEE ALSO
xcrun(1), xcode-build(1), xcode-select(1)
.SH BUGS
No known bugs. Please see http://github.com/linkedin/bluepill/issues
for an up-to-date list.
.SH HISTORY
Bluepill was developed at LinkedIn during the fall of 2016 as a
replacement for our scripts for running iPhone simulators in
parallel. It was released as an Open Source project on GitHub at the
beginning of 2017.
.SH AUTHORS
Ashit Gandhi (agandhi@linkedin.com)
Jarek Rudzinski (jrudzinski@linkedin.com)
Keqiu Hu (khu@linkedin.com)
Oscar Bonilla (obonilla@linkedin.com)
Yu Li (yli4@linkedin.com)