@@ -143,7 +143,8 @@ def pytest_addoption(parser):
143
143
constants .Environment .TEST
144
144
),
145
145
default = constants .Environment .TEST ,
146
- help = "The environment to run the tests in." )
146
+ help = """This option is used for setting the test env.
147
+ In tests, use "self.environment" to get the env.""" )
147
148
parser .addoption ('--data' ,
148
149
dest = 'data' ,
149
150
default = None ,
@@ -191,18 +192,19 @@ def pytest_addoption(parser):
191
192
action = "store_true" ,
192
193
dest = 'with_testing_base' ,
193
194
default = True ,
194
- help = """Use to save logs and screenshots when tests fail.
195
+ help = """(DEPRECATED) - This option is always enabled now.
196
+ Use for saving logs & screenshots when tests fail.
195
197
The following options are now active by default
196
- with --with-testing_base (which is on by default ):
198
+ with --with-testing_base (which is always on now ):
197
199
--with-screen_shots ,
198
200
--with-basic_test_info ,
199
201
--with-page_source
200
202
""" )
201
203
parser .addoption ('--log_path' , '--log-path' ,
202
204
dest = 'log_path' ,
203
205
default = 'latest_logs/' ,
204
- help = """Log files are saved to the "latest_logs/" folder .
205
- (This field is NOT EDITABLE anymore!) """ )
206
+ help = """(DEPRECATED) - This value is NOT EDITABLE anymore .
207
+ Log files are saved to the "latest_logs/" folder. """ )
206
208
parser .addoption ('--archive_logs' , '--archive-logs' ,
207
209
action = "store_true" ,
208
210
dest = 'archive_logs' ,
@@ -213,7 +215,7 @@ def pytest_addoption(parser):
213
215
dest = 'with_db_reporting' ,
214
216
default = False ,
215
217
help = "Use to record test data in the MySQL database." )
216
- parser .addoption ('--database_env' , '--database-env' ,
218
+ parser .addoption ('--database_env' ,
217
219
action = 'store' ,
218
220
dest = 'database_env' ,
219
221
choices = (
@@ -236,19 +238,24 @@ def pytest_addoption(parser):
236
238
action = "store_true" ,
237
239
dest = 'with_screen_shots' ,
238
240
default = False ,
239
- help = """Use to save screenshots on test failure.
241
+ help = """(DEPRECATED) - Screenshots are always saved now.
242
+ This option saves screenshots during test failures.
243
+ Screenshots are saved in the "latest_logs/" folder.
240
244
(Automatically on when using --with-testing_base)""" )
241
245
parser .addoption ('--with-basic_test_info' , '--with-basic-test-info' ,
242
246
action = "store_true" ,
243
247
dest = 'with_basic_test_info' ,
244
248
default = False ,
245
- help = """Use to save basic test info on test failure.
249
+ help = """(DEPRECATED) - Info files are always saved now.
250
+ This option saves basic test info on test failures.
251
+ These files are saved in the "latest_logs/" folder.
246
252
(Automatically on when using --with-testing_base)""" )
247
253
parser .addoption ('--with-page_source' , '--with-page-source' ,
248
254
action = "store_true" ,
249
255
dest = 'with_page_source' ,
250
256
default = False ,
251
- help = """Use to save page source on test failure.
257
+ help = """(DEPRECATED) - Page source is saved by default.
258
+ This option saves page source files on test failures.
252
259
(Automatically on when using --with-testing_base)""" )
253
260
parser .addoption ('--server' ,
254
261
action = 'store' ,
@@ -447,14 +454,16 @@ def pytest_addoption(parser):
447
454
action = "store_true" ,
448
455
dest = 'no_sandbox' ,
449
456
default = False ,
450
- help = """Using this enables the "No Sandbox" feature.
457
+ help = """(DEPRECATED) - "--no-sandbox" is always used now.
458
+ Using this enables the "No Sandbox" feature.
451
459
(This setting is now always enabled by default.)""" )
452
460
parser .addoption ('--disable_gpu' , '--disable-gpu' ,
453
461
action = "store_true" ,
454
462
dest = 'disable_gpu' ,
455
463
default = False ,
456
- help = """Using this enables the "Disable GPU" feature.
457
- (This setting is now always enabled by default.)""" )
464
+ help = """(DEPRECATED) - GPU is disabled if no swiftshader.
465
+ Using this enables the "Disable GPU" feature.
466
+ (GPU is disabled by default if swiftshader off.)""" )
458
467
parser .addoption ('--remote_debug' , '--remote-debug' ,
459
468
action = "store_true" ,
460
469
dest = 'remote_debug' ,
0 commit comments