How keep spring context loaded between test runs in Intellij Idea?

蹲街弑〆低调 提交于 2020-01-24 03:51:21

问题


Spring-test provides annotation for loading spring context during test runs. For example there is a org.springframework.test.context.junit4.SpringJUnit4ClassRunner junit runner class and org.springframework.test.context.ContextConfiguration annotation for specify context loading. For integration tests context loading can be quite long and during debugging it is needed to run same test dozen times until it "lose" all it's errors. Is there a way to do so without loading context multiple times? For example I finished debugging context loading, then run that context and start running test in intellij idea? Is that possible with Intellij Idea?

来源:https://stackoverflow.com/questions/37696742/how-keep-spring-context-loaded-between-test-runs-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!