-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Implement CLI options to set truncation thresholds #12766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
fc06bae
feat: implement customization of truncation limits
zhukoff-pavel 42e4e9c
create changelog
zhukoff-pavel 85fe194
append authors
zhukoff-pavel 24b075b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 550b725
fix changelog
zhukoff-pavel ea7d90b
add test
zhukoff-pavel fff0e7b
fix no_fnmatch_line invocations
zhukoff-pavel 3fd50ad
escape newlines
zhukoff-pavel 868c26e
Change order
zhukoff-pavel 5526cba
Merge branch 'main' into impl-12765
zhukoff-pavel 856bb8f
Merge branch 'main' into impl-12765
zhukoff-pavel e1edf2c
Rewrite to .ini parameters instead of CLI
zhukoff-pavel b4b5fb1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 23ea5dd
Merge branch 'main' into impl-12765
zhukoff-pavel d123ac3
Convert CLI flags to confvals in changelog
zhukoff-pavel 98938ce
Clarify truncation usage order in doc/en/how-to/output.rst
zhukoff-pavel ae3cd2f
Handle parameters being set to zero
zhukoff-pavel b2287af
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] eee9e70
Fix typo in test case description
zhukoff-pavel 7027624
Fix failing tests
zhukoff-pavel 6fb0d8b
Add version added to doc/en/how-to/output.rst
zhukoff-pavel d1e555f
Add reference to truncation-params section in changelog/12765.feature…
zhukoff-pavel dba7fef
Add section in doc/en/how-to/output.rst
zhukoff-pavel 8dddd73
Refactor _should_truncate_item to _get_truncation_parameters
zhukoff-pavel c3e8d7b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8b69cda
Add a couple new test cases
zhukoff-pavel f9fd936
Merge branch 'main' into impl-12765
zhukoff-pavel f0ebeb0
Update docstring in src/_pytest/assertion/truncate.py
zhukoff-pavel dc3f065
Add reference to config parameters
zhukoff-pavel fced07c
Apply suggestions from code review
nicoddemus da08959
Apply suggestions from code review
nicoddemus d3e19af
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5fa412a
Fix note markup
nicoddemus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Thresholds to trigger snippet truncation can now be set with `--truncation-limit-lines` and `--truncation-limit-chars` command line options. | ||
zhukoff-pavel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.