• Andy Wilkinson's avatar
    Use @DirtiesContext to avoid unwanted context caching in the tests · d6e0b5a1
    Andy Wilkinson authored
    We rarely use the same configuration in multiple test classes, but
    Spring’s Test framework caches each context by default. For projects
    with large numbers of integration tests, this can lead to tens of
    contexts being cached. This increases memory usage, live thread count,
    etc for no benefit.
    
    This commit adds @DirtiesContext to the integration tests in
    spring-boot, spring-boot-autoconfigure, and spring-boot-actuator so
    that the context is closed once the test class has completed.
    
    See gh-5141
    d6e0b5a1
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...