问题
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