You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Spring TestContext Framework (TCF) has always cached ApplicationContexts loaded for tests; however, it's always been a bit of a black art knowing (or finding out) exactly how many contexts are loaded within a given test suite.
The information, however, has always been tracked internally within the ContextCache class, and some developers have used reflection to acquire this information. It would therefore be beneficial to many development teams if the context cache statistics were made publicly available, at least as log output.
Deliverables
Log context cache statistics whenever an ApplicationContext is loaded by the TCF.
Sam Brannen opened SPR-12409 and commented
Status Quo
The Spring TestContext Framework (TCF) has always cached
ApplicationContextsloaded for tests; however, it's always been a bit of a black art knowing (or finding out) exactly how many contexts are loaded within a given test suite.The information, however, has always been tracked internally within the
ContextCacheclass, and some developers have used reflection to acquire this information. It would therefore be beneficial to many development teams if the context cache statistics were made publicly available, at least as log output.Deliverables
ApplicationContextis loaded by the TCF.Affects: 3.0 GA
Referenced from: commits 983ebaf, da04362, a09bc9b, 74500ec
Backported to: 4.0.8, 3.2.12