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

Defer Runner initialization until it is run #1021

Merged

Conversation

dbevacqua
Copy link
Collaborator

Fixes #1020

dbevacqua and others added 3 commits February 14, 2020 12:50
Some tools (e.g. Maven Surefire plugin) instantiate all potential Runners before filtering them (based on e.g. JUnit @category annotations). For Spring Runners, this means that an ApplicationContext will be created, even if the tests are subsequently skipped, increasing build times.
@uglyog uglyog merged commit 66babb0 into pact-foundation:master Feb 18, 2020
@uglyog
Copy link
Member

uglyog commented Feb 22, 2020

4.0.6 has been released with this fix

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.

SpringRestPactRunner instantiates ApplicationContext too eagerly
5 participants