19
19
20
20
--------
21
21
22
- Run an [ example test] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py ) : (Default option: `` --browser= chrome `` )
22
+ Run an [ example test] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py ) : (Default option: `` --chrome `` )
23
23
24
24
``` bash
25
25
pytest test_demo_site.py
@@ -67,7 +67,7 @@ pytest wordle_test.py
67
67
68
68
--------
69
69
70
- Run an example test in Headless Mode: (invisible browser)
70
+ Run an example test in `` --headless `` Mode: (invisible browser)
71
71
72
72
``` bash
73
73
pytest my_first_test.py --headless
@@ -85,7 +85,7 @@ pytest test_swag_labs.py --mobile
85
85
86
86
--------
87
87
88
- Run another [ example test] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_xkcd.py ) in Demo Mode : (highlight assertions)
88
+ Run an [ example test] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_xkcd.py ) in `` --demo `` mode : (highlight assertions)
89
89
90
90
``` bash
91
91
pytest test_xkcd.py --demo
@@ -103,10 +103,10 @@ pytest test_suite.py -v
103
103
104
104
--------
105
105
106
- Run a test suite multi-threaded using [ n ] threads :
106
+ Run a test suite using multiple parallel processes ( `` -n=NUM `` ) :
107
107
108
108
``` bash
109
- pytest test_suite.py -n=4
109
+ pytest test_suite.py -n=8
110
110
```
111
111
112
112
--------
@@ -127,7 +127,7 @@ pytest test_suite.py --dashboard
127
127
128
128
--------
129
129
130
- Run a test suite and generate a pytest report:
130
+ Run a test suite and generate a `` pytest `` report:
131
131
132
132
``` bash
133
133
pytest test_suite.py --html=report.html
@@ -151,7 +151,7 @@ pytest test_fail.py --pdb -s
151
151
152
152
--------
153
153
154
- Run a test suite that demonstrates the use of pytest markers:
154
+ Run a test suite that demonstrates the use of `` pytest `` markers:
155
155
156
156
``` bash
157
157
pytest -m marker_test_suite -v
@@ -162,7 +162,7 @@ pytest -m marker_test_suite -v
162
162
Run a test suite that reuses the browser session between tests:
163
163
164
164
``` bash
165
- pytest test_suite.py --reuse-session
165
+ pytest test_suite.py --rs
166
166
```
167
167
168
168
--------
@@ -183,7 +183,7 @@ pytest upload_file_test.py
183
183
184
184
--------
185
185
186
- Try the new SeleniumBase Commander! A GUI for pytest:
186
+ Try the new SeleniumBase Commander! A GUI for `` pytest `` :
187
187
188
188
``` bash
189
189
sbase gui
@@ -195,23 +195,23 @@ sbase gui
195
195
196
196
<b >SeleniumBase tests can also be run with `` pynose `` :</b >
197
197
198
- Run an example test with pynose:
198
+ Run an example test with `` pynose `` :
199
199
200
200
``` bash
201
201
pynose my_first_test.py
202
202
```
203
203
204
204
--------
205
205
206
- Run an example test suite and generate a pynose test report:
206
+ Run an example test suite and generate a `` pynose `` test report:
207
207
208
208
``` bash
209
209
pynose test_suite.py --report --show-report
210
210
```
211
211
212
212
--------
213
213
214
- Run an example test using a pynose configuration file:
214
+ Run an example test using a `` pynose `` configuration file:
215
215
216
216
``` bash
217
217
pynose my_first_test.py --config=example_config.cfg
@@ -241,7 +241,7 @@ python gui_test_runner.py
241
241
242
242
--------
243
243
244
- 🎖️ To launch the SeleniumBase Commander GUI for pytest:
244
+ 🎖️ To launch the SeleniumBase Commander GUI for `` pytest `` :
245
245
246
246
``` bash
247
247
sbase gui
0 commit comments