我们已经使用如下注解编写了测试,
@RunWith(SpringRunner.class)
@Slf4j
@SpringBootTest
在IntelliJ 2017中,我们通过运行/调试配置运行spring引导程序,它会自动执行这些测试。但有些测试确实需要很多时间,有没有办法禁用或跳过这些测试?非常感谢。
发布于 2017-10-26 20:41:00
您可以编写一个junit category of runners,或者右键单击包名或测试类并选择Run "yourClassName"
,这将只运行这个类或所选包中的所有类。
https://stackoverflow.com/questions/46954566
复制相似问题