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
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,32 @@ If you would like to run tests without pytest-sugar, use:
27
27
28
28
pytest -p no:sugar
29
29
30
+
## Usage
31
+
pytest-sugar provides several command-line options to customize its output and behavior. These options enhance test reporting and Playwright trace integration:
32
+
33
+
34
+
Show detailed test failures instead of one-line tracebacks.
35
+
Use this if you want to see the full failure information instantly.
36
+
37
+
--old-summary
38
+
39
+
Force pytest-sugar output even if pytest doesn’t detect a real terminal.
40
+
Useful when running tests in CI systems or other non-interactive environments.
41
+
42
+
--force-sugar
43
+
44
+
45
+
Specify the directory where Playwright trace files are stored.
46
+
Defaults to Playwright default: "test-results"
47
+
48
+
--sugar-trace-dir <directory>
49
+
50
+
Disable Playwright trace file detection and output display.
51
+
Use this if you want to turn off trace collection or display entirely.
52
+
53
+
--sugar-no-trace
54
+
55
+
30
56
## How to contribute 👷♂️
31
57
32
58
[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375)
Add Playwright trace file detection and display support for failed tests. This enhancement automatically detects and displays Playwright trace.zip files with viewing commands when tests fail, making debugging easier for Playwright users.
0 commit comments