【发布时间】:2021-11-06 05:25:16
【问题描述】:
我想启用带有@EnableIf 注释的黄瓜测试,但即使我添加@EnabledIf("false") 也无法正常工作
这是我使用的代码:
@EnabledIf("false")
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@CucumberContextConfiguration
public class CucumberRoot {
private int port = 8080;
protected String DEFAULT_URL = "http://localhost:" + port + "/";
@Autowired
protected TestRestTemplate template;
}
对于黄瓜以外的其他集成测试,我可以使用@EnableIf 注释。
有什么方法可以实现吗?
【问题讨论】:
标签: spring-boot cucumber enable-if