Skip to content

Commit 23a3e43

Browse files
committed
Update a ReadMe
1 parent ef3ca36 commit 23a3e43

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

examples/ReadMe.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,87 +10,88 @@ During test failures, logs and screenshots from the most recent test run will ge
1010

1111
**Here are some example run commands to help get you started:**
1212

13-
Run an example test in Chrome: (``--browser=chrome`` is the default)
13+
* Run an example test in Chrome: (Default: ``--browser=chrome``)
1414
```bash
1515
pytest my_first_test.py
1616
```
1717

18-
Run an example test in Firefox:
18+
* Run an example test in Firefox:
1919
```bash
2020
pytest my_first_test.py --browser=firefox
2121
```
2222

23-
Run an example test in Demo Mode: (highlights assertions)
23+
* Run an example test in Demo Mode: (highlight assertions)
2424
```bash
2525
pytest my_first_test.py --demo
2626
```
27+
<img src="https://cdn2.hubspot.net/hubfs/100006/images/my_first_test_gif.gif" title="SeleniumBase"><br />
2728

28-
Run an example test in Headless Mode: (invisible web browser)
29+
* Run an example test in Headless Mode: (invisible browser)
2930
```bash
3031
pytest my_first_test.py --headless
3132
```
3233

33-
Run tests with verbose output: (includes more details)
34+
* Run tests with verbose output: (includes more details)
3435
```bash
3536
pytest test_suite.py -v
3637
```
3738

38-
Run tests multi-threaded using [n] threads:
39+
* Run tests multi-threaded using [n] threads:
3940
```bash
4041
pytest test_suite.py -v -n=4
4142
```
4243

43-
Run a parameterized test, which generates multiple tests out of one:
44+
* Run a parameterized test: (Generates multiple tests from one)
4445
```bash
4546
pytest parameterized_test.py -v
4647
```
4748

48-
Run an example test suite and generate a pytest report: (pytest-only)
49+
* Run a test suite and generate a pytest report: (pytest-only)
4950
```bash
5051
pytest test_suite.py -v --html=report.html
5152
```
5253

53-
Run a failing test: (See the ``latest_logs/`` folder for logs and screenshots)
54+
* Run a failing test: (See the ``latest_logs/`` folder for logs and screenshots)
5455
```bash
5556
pytest test_fail.py
5657
```
5758

58-
Run an example test using Chrome's mobile device emulator: (default settings)
59+
* Run an example test using Chrome's mobile device emulator: (default settings)
5960
```bash
6061
pytest test_swag_labs.py --mobile
6162
```
6263

63-
Run a failing test with Debug-mode enabled: (``pdb`` activates on failures)
64+
* Run a failing test with Debug-mode enabled: (``pdb`` activates on failures)
6465
```bash
6566
pytest test_fail.py --pdb -s
6667
```
6768

68-
Run an example test suite that demonstrates the use of pytest markers:
69+
* Run an example test suite that demonstrates the use of pytest markers:
6970
```bash
7071
pytest -m marker_test_suite -v
7172
```
7273

73-
Run an example test suite that reuses the browser session between tests:
74+
* Run an example test suite that reuses the browser session between tests:
7475
```bash
7576
pytest test_suite.py --reuse-session -v
7677
```
7778

78-
Run an example test demonstrating the ``rate_limited`` Python decorator:
79+
* Run an example test demonstrating the ``rate_limited`` Python decorator:
7980
```bash
8081
pytest rate_limiting_test.py
8182
```
8283

83-
Run an example test that demonstrates how to upload a file to a website:
84+
* Run an example test that demonstrates how to upload a file to a website:
8485
```bash
8586
pytest upload_file_test.py
8687
```
8788

88-
Run an example test suite and generate a nosetest report: (nosetests-only)
89+
* Run an example test suite and generate a nosetest report: (nosetests-only)
8990
```bash
9091
nosetests test_suite.py --report --show-report
9192
```
9293

93-
Run an example test using a nosetest configuration file: (nosetests-only)
94+
* Run an example test using a nosetest configuration file: (nosetests-only)
9495
```bash
9596
nosetests my_first_test.py --config=example_config.cfg
9697
```

0 commit comments

Comments
 (0)