You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ pip install pytest-httpdbg
18
18
--httpdbg record HTTP(S) requests
19
19
--httpdbg-dir=HTTPDBG_DIR
20
20
save httpdbg traces in a directory
21
-
--httpdbg-no-clean clean httpdbg directory
21
+
--httpdbg-no-clean do not clean the httpdbg directory
22
22
--httpdbg-initiator=HTTPDBG_INITIATOR
23
23
add a new initiator (package) for httpdbg
24
24
```
@@ -44,30 +44,39 @@ You can use any package as an initiator, this is not limited to HTTP requests.
44
44
45
45
## test report
46
46
47
-
One log file in markdown format is created per test.
47
+
When the test is finished (teardown step included), one log file in markdown format is written. The path to this log file is stashed in the item when the test starts (before the setup step), even if the file not exists yet.
48
48
49
49
### pytest-html
50
50
51
51
You can copy the following code in your top-level `conftest.py` to include the logs into your pytest-html report.
52
52
53
53
```python
54
+
import os
55
+
54
56
import pytest
55
57
56
58
from pytest_httpdbg import httpdbg_record_filename
0 commit comments