Skip to content

Extract large-dependency tests from model_test #2068

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 4 commits into from
Nov 12, 2019
Merged

Conversation

jcollins-g
Copy link
Contributor

Reduces the runtime of model_test by a factor of 4.5x by extracting the handful of tests that require additional initialization out to a separate test. Overall runtime is not impacted significantly for the full suite, but this will make it much faster to run individual tests in the common case (iterating on model_test.dart). Even in the split out test, individual tests will run faster as everything doesn't require everything else to be initialized anymore.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Nov 11, 2019
@coveralls
Copy link

coveralls commented Nov 11, 2019

Coverage Status

Coverage remained the same at 93.839% when pulling b1c7416 on test-speed into e340b1f on master.

@jcollins-g jcollins-g requested a review from pq November 11, 2019 23:08
@jcollins-g jcollins-g merged commit 4995e7e into master Nov 12, 2019
@jcollins-g jcollins-g deleted the test-speed branch April 27, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants