Skip to content

Commit 13508fe

Browse files
committed
Add ReadMe info about creating junitxml reports
1 parent da76064 commit 13508fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ Using ``--html=report.html`` gives you a fancy report of the name specified afte
178178
pytest my_test_suite.py --html=report.html
179179
```
180180

181+
You can also use ``--junitxml=report.xml`` to get an xml report instead. Jenkins can use this file to display better reporting for your tests.
182+
183+
```bash
184+
pytest my_test_suite.py --junitxml=report.xml
185+
```
186+
181187
![](https://cdn2.hubspot.net/hubfs/100006/images/PytestReport.png "Example Pytest Report")
182188

183189
#### **Nosetest Reports:**

0 commit comments

Comments
 (0)