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

cmd/tool/slowest: Print or mark slowest tests #107

Merged
merged 10 commits into from
May 15, 2020

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented May 2, 2020

Example usage in the source.

Keep local development fast by identifying slow tests and automatically marking them with a t.Skip on some condition.

The preset seems to fix the problem where the formatting of the statement had
strange newlines added by the ast writer.
A test case may have multiple runs if -count=x is used, or when the input contains the
test2json output from multiple test runs.

Using the median time should exclude some outliers.
It can lead to strange output when the string containts a %
@dnephin dnephin merged commit 729c5b2 into gotestyourself:master May 15, 2020
@dnephin dnephin deleted the mark-slowest-tests branch May 15, 2020 21:13
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

Successfully merging this pull request may close these issues.

None yet

1 participant