File tree Expand file tree Collapse file tree 6 files changed +65
-12
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 6 files changed +65
-12
lines changed Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
3
- # Display console output, disable cacheprovider:
4
- addopts = --capture =no -p no:cacheprovider
3
+ # Display console output, disable cacheprovider, don't collect recordings:
4
+ addopts = --capture =no -p no:cacheprovider --ignore =recordings
5
+
6
+ # Skip looking in these directories for tests:
7
+ norecursedirs = .* build dist recordings temp
5
8
6
9
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7
10
filterwarnings =
@@ -18,7 +21,8 @@ python_files = test_*.py *_test.py *_tests.py *_suite.py *_test_*.py
18
21
python_classes = Test* *Test* *Test *Tests *Suite
19
22
python_functions = test_*
20
23
21
- # Here are the pytest markers used in the example tests:
24
+ # Here are some common pytest markers:
25
+ # (Some are used in the example tests.)
22
26
# (pytest v4.5.0 and newer requires marker registration to prevent warnings.)
23
27
# (Future versions of pytest may turn those marker warnings into errors.)
24
28
markers =
@@ -32,7 +36,11 @@ markers =
32
36
offline: custom marker
33
37
develop: custom marker
34
38
qa: custom marker
39
+ ci: custom marker
40
+ e2e: custom marker
35
41
ready: custom marker
42
+ smoke: custom marker
43
+ deploy: custom marker
36
44
active: custom marker
37
45
master: custom marker
38
46
release: custom marker
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
3
- # Display console output, disable cacheprovider:
4
- addopts = --capture =no -p no:cacheprovider
3
+ # Display console output, disable cacheprovider, don't collect recordings:
4
+ addopts = --capture =no -p no:cacheprovider --ignore =recordings
5
+
6
+ # Skip looking in these directories for tests:
7
+ norecursedirs = .* build dist recordings temp
5
8
6
9
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7
10
filterwarnings =
8
11
ignore::pytest.PytestWarning
9
12
ignore:.*U.*mode is deprecated:DeprecationWarning
10
13
14
+ # Configure the junit_family option explicitly:
15
+ junit_family = legacy
16
+
11
17
# Set pytest discovery rules:
12
18
# (Most of the rules here are similar to the default rules.)
13
19
# (unittest.TestCase rules override the rules here for classes and functions.)
14
20
python_files = *.py
21
+ python_classes = Test* *Test* *Test *Tests *Suite
15
22
python_functions = test_*
23
+
24
+ # Here are some common pytest markers:
25
+ # (Some are used in the example tests.)
26
+ # (pytest v4.5.0 and newer requires marker registration to prevent warnings.)
27
+ # (Future versions of pytest may turn those marker warnings into errors.)
28
+ markers =
29
+ marker1: custom marker
30
+ marker2: custom marker
31
+ marker3: custom marker
32
+ marker_test_suite: custom marker
33
+ expected_failure: custom marker
34
+ local: custom marker
35
+ remote: custom marker
36
+ offline: custom marker
37
+ develop: custom marker
38
+ qa: custom marker
39
+ ci: custom marker
40
+ e2e: custom marker
41
+ ready: custom marker
42
+ smoke: custom marker
43
+ deploy: custom marker
44
+ active: custom marker
45
+ master: custom marker
46
+ release: custom marker
47
+ staging: custom marker
48
+ production: custom marker
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
3
- # Display console output, disable cacheprovider:
4
- addopts = --capture =no -p no:cacheprovider
3
+ # Display console output, disable cacheprovider, don't collect recordings:
4
+ addopts = --capture =no -p no:cacheprovider --ignore =recordings
5
+
6
+ # Skip looking in these directories for tests:
7
+ norecursedirs = .* build dist recordings temp
5
8
6
9
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7
10
filterwarnings =
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
3
- # Display console output, disable cacheprovider:
4
- addopts = --capture =no -p no:cacheprovider
3
+ # Display console output, disable cacheprovider, don't collect recordings:
4
+ addopts = --capture =no -p no:cacheprovider --ignore =recordings
5
+
6
+ # Skip looking in these directories for tests:
7
+ norecursedirs = .* build dist recordings temp
5
8
6
9
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7
10
filterwarnings =
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
3
- # Display console output, disable cacheprovider:
4
- addopts = --capture =no -p no:cacheprovider
3
+ # Display console output, disable cacheprovider, don't collect recordings:
4
+ addopts = --capture =no -p no:cacheprovider --ignore =recordings
5
+
6
+ # Skip looking in these directories for tests:
7
+ norecursedirs = .* build dist recordings temp
5
8
6
9
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7
10
filterwarnings =
Original file line number Diff line number Diff line change @@ -121,7 +121,10 @@ def main():
121
121
122
122
data = []
123
123
data .append ("[pytest]" )
124
- data .append ("addopts = --capture=no -p no:cacheprovider" )
124
+ data .append (
125
+ "addopts = --capture=no -p no:cacheprovider --ignore=recordings"
126
+ )
127
+ data .append ("norecursedirs = .* build dist recordings temp" )
125
128
data .append ("filterwarnings =" )
126
129
data .append (" ignore::pytest.PytestWarning" )
127
130
data .append (" ignore:.*U.*mode is deprecated:DeprecationWarning" )
You can’t perform that action at this time.
0 commit comments