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

Print warning when test files take a disproportionate amount of time to declare tests #2565

Open
novemberborn opened this issue Aug 22, 2020 · 2 comments

Comments

@novemberborn
Copy link
Member

Based on feedback from @shusson in #2268 (comment) it would be interesting if we could instrument how long it takes between AVA loading the test file to tests being declared.

This time is not taken by AVA itself, but instead by the test and project code. There are likely optimizations possible in the project that is using AVA.

If this takes a disproportionate amount of time of the overall test run (5%? 10%?) we should print a warning after the test run has completed.

@kevinniland
Copy link

I would like to try this, if possible?

@novemberborn
Copy link
Member Author

@kevinniland of course, that'd be great!

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

No branches or pull requests

2 participants