如何启动Spring Boot应用以进行集成测试。

huangapple 未分类评论41阅读模式
英文:

How to start spring boot application for the sake of integration testing

问题

我在想。如何从单元测试中启动一个Spring Boot应用程序?我正在构建一个集成测试套件,我希望在测试中启动应用程序,以便进行集成测试。似乎应该有一种非常直接的方法来做到这一点,但我不知道如何做到。

英文:

I am wondering. How do you start a springboot application from a unit test? I am working on building an integration test suite, and I want to start the application in the test so the integration tests can run. It seems like there should be a pretty straight forward way to do this, but I don't see how to do it.

huangapple
  • 本文由 发表于 2020年4月4日 06:38:03
  • 转载请务必保留本文链接:https://java.coder-hub.com/61021446.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定