Update the docs
This commit is contained in:
parent
f01a92b7bc
commit
0e7829cfb6
|
@ -292,7 +292,7 @@ Here are some useful command-line options that come with ``pytest``:
|
||||||
-s # See print statements. (Should be on by default with pytest.ini present.)
|
-s # See print statements. (Should be on by default with pytest.ini present.)
|
||||||
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
|
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
|
||||||
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
|
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
|
||||||
-m=MARKER # Only run tests that are marked with the specified pytest marker.
|
-m=MARKER # Run tests with the specified pytest marker.
|
||||||
```
|
```
|
||||||
|
|
||||||
SeleniumBase provides additional ``pytest`` command-line options for tests:
|
SeleniumBase provides additional ``pytest`` command-line options for tests:
|
||||||
|
|
|
@ -87,7 +87,7 @@ Here are some useful command-line options that come with ``pytest``:
|
||||||
-s # See print statements. (Should be on by default with pytest.ini present.)
|
-s # See print statements. (Should be on by default with pytest.ini present.)
|
||||||
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
|
--junit-xml=report.xml # Creates a junit-xml report after tests finish.
|
||||||
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
|
--pdb # If a test fails, pause run and enter debug mode. (Don't use with CI!)
|
||||||
-m=MARKER # Only run tests that are marked with the specified pytest marker.
|
-m=MARKER # Run tests with the specified pytest marker.
|
||||||
```
|
```
|
||||||
|
|
||||||
SeleniumBase provides additional ``pytest`` command-line options for tests:
|
SeleniumBase provides additional ``pytest`` command-line options for tests:
|
||||||
|
|
|
@ -456,28 +456,28 @@ def show_options():
|
||||||
print('--slow (Slow down the automation. Faster than using Demo Mode.)')
|
print('--slow (Slow down the automation. Faster than using Demo Mode.)')
|
||||||
print('--reuse-session / --rs (Reuse the browser session between tests.)')
|
print('--reuse-session / --rs (Reuse the browser session between tests.)')
|
||||||
print('--crumbs (Delete all cookies between tests reusing a session.)')
|
print('--crumbs (Delete all cookies between tests reusing a session.)')
|
||||||
print("--guest (Enable Chrome's Guest mode.)")
|
print('--maximize (Start tests with the web browser window maximized.)')
|
||||||
print("--incognito (Enable Chrome's Incognito mode.)")
|
print("--incognito (Enable Chrome's Incognito mode.)")
|
||||||
print('-m MARKER (Only run tests with the specified pytest marker.)')
|
print("--guest (Enable Chrome's Guest mode.)")
|
||||||
|
print('-m MARKER (Run tests with the specified pytest marker.)')
|
||||||
print('-n NUM (Multithread the tests using that many threads.)')
|
print('-n NUM (Multithread the tests using that many threads.)')
|
||||||
print('-v (Verbose mode. Print the full name of each test run.)')
|
print('-v (Verbose mode. Print the full name of each test run.)')
|
||||||
|
print('--check-js (Check for JavaScript errors after page loads.)')
|
||||||
|
print('--html=report.html (Create a detailed pytest-html report.)')
|
||||||
print("--agent=STRING (Modify the web browser's User-Agent string.)")
|
print("--agent=STRING (Modify the web browser's User-Agent string.)")
|
||||||
print('--mobile (Use the mobile device emulator while running tests.)')
|
print('--mobile (Use the mobile device emulator while running tests.)')
|
||||||
print('--metrics=STRING (Set mobile "CSSWidth,CSSHeight,PixelRatio".)')
|
print('--metrics=STRING (Set mobile "CSSWidth,CSSHeight,PixelRatio".)')
|
||||||
print('--maximize (Start tests with the web browser window maximized.)')
|
|
||||||
print('--ad-block (Block some types of display ads after page loads.)')
|
print('--ad-block (Block some types of display ads after page loads.)')
|
||||||
print('--check-js (Check for JavaScript errors after page loads.)')
|
|
||||||
print('--pdb (Enter Debug Mode if a test fails. h: Help. c: Continue.')
|
print('--pdb (Enter Debug Mode if a test fails. h: Help. c: Continue.')
|
||||||
print(' interact: Interactive Mode. CTRL-D: Exit Interactive Mode.)')
|
print(' interact: Interactive Mode. CTRL-D: Exit Interactive Mode.)')
|
||||||
print('--html=report.html (Create a detailed pytest-html report.)')
|
|
||||||
print('--archive-logs (Archive old log files instead of deleting them.)')
|
print('--archive-logs (Archive old log files instead of deleting them.)')
|
||||||
print('--disable-csp (Disable the Content Security Policy of websites.)')
|
print('--disable-csp (Disable the Content Security Policy of websites.)')
|
||||||
|
print('--save-screenshot (Save a screenshot at the end of each test.)')
|
||||||
print('--proxy=SERVER:PORT (Set a proxy server:port combo for tests.)')
|
print('--proxy=SERVER:PORT (Set a proxy server:port combo for tests.)')
|
||||||
print("--settings-file=FILE (Override default SeleniumBase settings.)")
|
print("--settings-file=FILE (Override default SeleniumBase settings.)")
|
||||||
print('--env=ENV (Set the test env. Access with "self.env" in tests.)')
|
print('--env=ENV (Set the test env. Access with "self.env" in tests.)')
|
||||||
print('--data=DATA (Extra test data. Access with "self.data" in tests.)')
|
print('--data=DATA (Extra test data. Access with "self.data" in tests.)')
|
||||||
print('--collect-only -q (Show discovered tests without running them.)')
|
print('--collect-only -q (Show discovered tests without running them.)')
|
||||||
print('--save-screenshot (Save a screenshot at the end of each test.)')
|
|
||||||
print('-x (Stop running tests after the first failure is reached.)')
|
print('-x (Stop running tests after the first failure is reached.)')
|
||||||
print("")
|
print("")
|
||||||
line = 'For the full list of ' + c1 + 'command-line options' + cr
|
line = 'For the full list of ' + c1 + 'command-line options' + cr
|
||||||
|
|
Loading…
Reference in New Issue