generator-jhipster
generator-jhipster copied to clipboard
JUnit integration tests are too slow.
Overview of the issue
JUnit integration tests are too slow. Application context is restarted for every class test suit. Our implementation doesn't allow context reuse.
- use of DirtiesContext
- use of Mock
- some context customizers
Backend test step in ng-default is taking ~5min. It can be reduced to 2min-3min. The JUnit integration test duration can be reduce by at least 60%.
Motivation for or Use Case
Improve user experience for Tests.
Suggest a Fix
Cleanup tests context.
JHipster Version(s)
main
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
- [ ] Checking this box is mandatory (this is just to show you read everything)