Skip to content
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

Proptest logging #484

Open
Limeth opened this issue Jul 15, 2024 · 0 comments
Open

Proptest logging #484

Limeth opened this issue Jul 15, 2024 · 0 comments

Comments

@Limeth
Copy link

Limeth commented Jul 15, 2024

Hello!
I set up proptest for a Rust project and I'm having trouble with the length of the log when a test fails.
I was hoping to be able to gain some insight into why the minimal failing input caused a failure by inspecting its logs, but it seems like the logs of all the test's invocations during shrinking are included as well, inflating the log, and making it unwieldy.
Do you have any recommendations as to how to approach this issue? Is it possible to print the log of just the minimal failing case?

Example log: https://github.com/recursive-record-registry/rrr/actions/runs/9931639683/job/27431772077
Source code of the failing test: https://github.com/recursive-record-registry/rrr/blob/main/tests/test.rs#L122-L130

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant