Skip to content

Commit dc991c2

Browse files
committed
Update the docs
1 parent 1ed90bc commit dc991c2

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</p>
3131

3232
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py"><img src="https://cdn2.hubspot.net/hubfs/100006/images/swag_mobile.gif" /></a></p>
33-
<p align="center">(<i>Above: <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py">test_swag_labs.py</a> running with mobile emulation.</i>)</p>
33+
<p align="center">(<i>Above: <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py">test_swag_labs.py</a> running with mobile emulation enabled.</i>)</p>
3434

3535
```bash
3636
pytest test_swag_labs.py --mobile
@@ -246,15 +246,18 @@ pytest my_first_test.py --pdb -s
246246
```
247247
The code above will leave your browser window open in case there's a failure. (ipdb commands: 'n', 'c', 's' => next, continue, step).
248248

249-
Here are some other useful command-line options that come with Pytest:
249+
Here are some useful command-line options that come with Pytest:
250250
```bash
251251
-v # Prints the full test name for each test.
252252
-q # Prints fewer details in the console output when running tests.
253253
-x # Stop running the tests after the first failure is reached.
254254
--html=report.html # Creates a detailed pytest-html report after tests finish.
255255
--collect-only # Show what tests would get run without actually running them.
256-
-s # See print statements. (Should be on by default with pytest.ini present.)
257256
-n=NUM # Multithread the tests using that many threads. (Speed up test runs!)
257+
-s # See print statements. (Should be on by default with pytest.ini present.)
258+
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
259+
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
260+
-m=MARKER # Only run tests that are marked with the specified pytest marker.
258261
```
259262

260263
SeleniumBase provides additional Pytest command-line options for tests:

examples/translations/ReadMe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* English
77
* Chinese / 中文
88
* Dutch / Nederlands
9-
* French / français
10-
* Italian / italiano
9+
* French / Français
10+
* Italian / Italiano
1111
* Japanese / 日本語
1212
* Korean / 한국어
1313
* Portuguese / Português
1414
* Russian / Русский
15-
* Spanish / español
15+
* Spanish / Español
1616

1717
Multi-language tests are run with **pytest** like any other test. Every test method has a one-to-one mapping to every other supported language. Example:
1818
``self.open(URL)`` = ``self.开启网址(URL)``

help_docs/customizing_test_runs.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ Here are some useful command-line options that come with Pytest:
7777
-v # Prints the full test name for each test.
7878
-q # Prints fewer details in the console output when running tests.
7979
-x # Stop running the tests after the first failure is reached.
80-
--html=report.html # Creates a detailed test report after tests complete. (Using the pytest-html plugin)
80+
--html=report.html # Creates a detailed pytest-html report after tests finish.
8181
--collect-only # Show what tests would get run without actually running them.
82-
-s # See print statements. (Should be on by default with pytest.ini present.)
8382
-n=NUM # Multithread the tests using that many threads. (Speed up test runs!)
83+
-s # See print statements. (Should be on by default with pytest.ini present.)
84+
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
85+
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
86+
-m=MARKER # Only run tests that are marked with the specified pytest marker.
8487
```
8588

8689
SeleniumBase provides additional Pytest command-line options for tests:

seleniumbase/translate/french.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# French / français - Translations - Python 3 Only!
1+
# French / Français - Translations - Python 3 Only!
22
from seleniumbase import BaseCase
33

44

seleniumbase/translate/italian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Italian / italiano - Translations - Python 3 Only!
1+
# Italian / Italiano - Translations - Python 3 Only!
22
from seleniumbase import BaseCase
33

44

seleniumbase/translate/spanish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Spanish / español - Translations - Python 3 Only!
1+
# Spanish / Español - Translations - Python 3 Only!
22
from seleniumbase import BaseCase
33

44

0 commit comments

Comments
 (0)