Quarkus自定义测试资料
我有测试配置文件,我试图应用于我
@Nested
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestProfile(NoMonitoringProfile.class)
class ComplexMissionLifeCycleTest {
试图按顺序运行测试的一些quarkus测试,但是不幸的是,当我应用测试配置文件时,Quarkus似乎将配置文件应用于类中的每个@test并重新启动每次应用程序实例。这做了几件事。它杀死了我为测试存储的数据,更多地使测试的运行速度慢慢。
有没有办法将配置文件应用于整个课程,只有Quarkus从该配置文件开始一次?
I have test profile I am trying to apply to some of my quarkus tests
@Nested
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestProfile(NoMonitoringProfile.class)
class ComplexMissionLifeCycleTest {
I'm trying to run tests in order, but unfortunately when I apply the test profile it seems quarkus is applying the profile to each @Test in the class and restarting the application instance each time. This does a few things. It kills the data I'm storing for my test and more it makes the running of the test brutally slow.
Is there a way to apply a profile to the whole class and only have quarkus start once with that profile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论