Skip to content

Commit 2fa21a9

Browse files
committed
Have pytest and nosetests automatically use the logging plugin
1 parent 3450102 commit 2fa21a9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

seleniumbase/plugins/base_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def options(self, parser, env):
5858

5959
def configure(self, options, conf):
6060
super(Base, self).configure(options, conf)
61-
if not self.enabled:
62-
return
61+
self.enabled = True # Used if test class inherits BaseCase
6362
self.options = options
6463
self.report_on = options.report
6564
self.show_report = options.show_report

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def pytest_addoption(parser):
3636
help='Extra data to pass from the command line.')
3737
parser.addoption('--with-testing_base', action="store_true",
3838
dest='with_testing_base',
39-
default=False,
39+
default=True,
4040
help="Use to save logs (screenshots) when tests fail.")
4141
parser.addoption('--log_path', dest='log_path',
4242
default='latest_logs/',

0 commit comments

Comments
 (0)