Reputation: 333
The Maven build for my project is taking aroung 25 mins to run the full build . Bulk of the time is taken by the integration tests to run.
On the other hand the same integration tests take under 2 mins to run when i run the test cases manually on eclipse.
I feel that the spring context is loaded for every test case in maven but once on eclipse.
Is there any setting which does this?
Upvotes: 3
Views: 454
Reputation: 49251
Spring Framework has Context Caching feature that is designed to solve this kind of problems. Be aware that your case can change context, there is a feature for this too, it is @DirtiesContext
annotation.
Forking tests (especially fork per test) with Maven may be an obstacle in using this feature.
Upvotes: 1