Closed
Description
Heads up: This task requires significant knowledge of Gradle and Spring Boot. If you have never worked with these technologies, this is probably not an issue for you, and attempting it might be a waste of your time.
When I run integration test e.g. (io.tolgee.api.v2.controllers.v2ProjectsController.ProjectsControllerTest) it takes too much time on my high end MacBook Pro M3.
- 10.7 seconds for subsequent build without any change to codebase
- 11.7 seconds to start the spring boot context
Started ProjectsControllerTest in 10.551 seconds (process running for 11.711)
Lower time test is crucial for our developer experience. We need to get time to test for integration tests under 10 seconds (build + context load).
- Tune up gradle build, so subsequent builds are immediate (or fast as possible)
- Tune up Spring Integration Tests, so it doesn't take so long to start the context. We need to get under 5 seconds.
To setup the project, follow this guide.