Skip to content

Commit

Permalink
Use shorter tracebacks in the JSON report
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Aug 3, 2022
1 parent 775d25b commit f356ffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ def pytest_collection_modifyitems(config, items):
ci_mark = next((m for m in markers if m.name == "ci"), None)
if ci_mark is None:
item.add_marker(mark.skip(reason="disabled via --ci"))

# Avoid long tracebacks for the JSON report, which make the file too
# large.
if config.getoption('--json-report'):
config.option.tbstyle = 'native'

0 comments on commit f356ffd

Please sign in to comment.