Skip to content

Conversation

seregamorph
Copy link
Contributor

@seregamorph seregamorph commented Aug 3, 2025

Code samples for https://drafts.baeldung.com/?p=232163&preview=true

This demonstrates using of https://github.com/seregamorph/spring-test-smart-context which organizes auto-closing of spring contexts, see log:

Running suite of 8 integration test classes grouped and reordered by their 
MergedContextConfiguration (4 groups):
---
com.java.baeldung.spring.test.Test1IntTest (creates context)
com.java.baeldung.spring.test.Test2IntTest
com.java.baeldung.spring.test.Test7IntTest (closes context)
---
com.java.baeldung.spring.test.Test3IntTest (creates and closes context)
---
com.java.baeldung.spring.test.Test4IntTest (creates and closes context)
---
com.java.baeldung.spring.test.Test5IntTest (creates context)
com.java.baeldung.spring.test.Test6IntTest
com.java.baeldung.spring.test.Test8IntTest (closes context)

@seregamorph seregamorph marked this pull request as draft August 3, 2025 18:22
@eric-martin
Copy link
Collaborator

retest this please

@seregamorph seregamorph marked this pull request as ready for review August 15, 2025 19:45
@seregamorph
Copy link
Contributor Author

@eric-martin the build is green now

@seregamorph seregamorph changed the title spring-testing-4 Optimizing Spring Integration Tests at Scale Aug 15, 2025
@eric-martin eric-martin merged commit cae6cb5 into eugenp:master Aug 30, 2025
1 check passed
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.

2 participants