【发布时间】:2015-07-23 17:16:46
【问题描述】:
我正在使用 springboot 和 rest-assured 编写我的集成测试,并使用 SpringApplicationConfiguration 来加载配置。
这是测试类注解的样子:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = RestAPIApplication.class)
@IntegrationTest("server.port:8083") // this is the port set by my application
现在是我真正的问题。当我使用 maven 在 teamcity 中运行测试类时,在运行集成测试之前我不需要配置一些东西来运行 springboot 服务器吗?
我是springboot的新手,所以这个问题可能很新手,但请指出正确的路径。
【问题讨论】:
标签: maven teamcity spring-boot rest-assured