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

Reduce error output in unit tests #47

Open
ScottG489 opened this issue Mar 10, 2023 · 1 comment
Open

Reduce error output in unit tests #47

ScottG489 opened this issue Mar 10, 2023 · 1 comment
Labels
tech debt Code refactoring

Comments

@ScottG489
Copy link
Owner

We have unit tests which ensure errors are thrown. This means in the test output there will be a stacktrace. Normally this is fine, but since we're using property based tests, the tests run a large number of times. So large that it usually overflows console scrollback and even github's action logs won't display the entire logs.

To reduce this output we could simply hide all of it. However, it might hide problems and make troubleshooting a little more difficult. I think ideally we could do something like show the first stacktrace and then just a count of all the other ones. Perhaps the property based testing framework we're using even has something built in for this?

@ScottG489 ScottG489 added the tech debt Code refactoring label Mar 10, 2023
@ScottG489
Copy link
Owner Author

Posed question to jqwik lib: jqwik-team/jqwik#498

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

No branches or pull requests

1 participant