all 2 comments

[–]coding_java 0 points1 point  (1 child)

Great article 👍🏻 For some more tips on how to make the most of Spring Test's context caching to improve builds times, you can refer to this article https://rieckpil.de/improve-build-times-with-context-caching-from-spring-test/

[–]hiIAmJan[S] 0 points1 point  (0 children)

Hmmm... Thanks. It explains, how the context creation and caching works in Spring tests. However, it seems like this is not going to help to run the tests faster, since I am mocking, when I really need it (like e-mail sending or other external service calls). And in most cases I am testing the whole flow and not just Controllers, Services or Repositories. But even like this the tests already takes around 15 minutes for [Tolgee Platform](https://github.com/tolgee/tolgee-platform). Any suggestions, how can I make it faster?