Versions: v2.3.1.RELEASE

Questions: When I run Test in my App,ex:

@SpringBootTest(classes = TerminalDataApplication.class)
@RunWith(SpringJUnit4ClassRunner.class)
public class CoordinateDownloadTest {
    @Test
    public void testOrganization() {
        List<District> allDistrictFormGaodeApi = this.getAllDistrictFormGaodeApi();
        System.err.println(allDistrictFormGaodeApi);
        List<OrganizationDTO> organizations = Lists.newArrayList();
        for (District district : allDistrictFormGaodeApi) {
            LoggerUtil.warn(LOGGER, "{}({}) 开始-------", district.getName(), district.getAdcode());
            OrganizationDTO.builder().organizationId(district.getAdcode()).organizationName(district.getName()).gmtCreate(new Date()).build();
            organizations.addAll(organizationBy(district));
            LoggerUtil.warn(LOGGER, "{}({}) 结束-------\n", district.getName(), district.getAdcode());
        }
        LoggerUtil.info(LOGGER, "[组织架构]累计构建:{}个", organizations.size());
    }
}

the app is very slow build ,like this image: slow

I waitting for at least 5~6min when test my method

How I can use SpringBootTest faster In my App?

Comment From: bclozel

I think this is related to your application's build, since your IDE is probably busy building the app and launching the tests. You should some more details in the "build" tab in your IDE. Maybe your build can be improved for caching? In any case, this looks like a question that belongs to StackOverflow, if you'd like more assistance.

I'm closing this issue, but we can reopen if you demonstrate that time is being spent in Spring Boot. Thanks!