英文:
Arquillian - Single deployment for all tests
问题
我正在使用Arquillian框架在托管容器(Wildfly)中执行测试。
我在部署方法中创建了一个包含所有类的可部署war存档。
我想知道是否有可能对单个部署运行所有测试用例。
这样我就不必在每个测试类中包含部署方法。
谢谢。
英文:
I am using Arquillian framework to execute tests in managed container(Wildfly).
I created deployable war archive with all classes inside in deployment method.
What I would like to know is if there is possibility to run all test cases against single deployment.
So I would not have to include Deployment method in each test class.
Thanks.
答案1
得分: 1
这不是 Arquillian 的核心功能的一部分,但有一个受欢迎的 Suite Extension,正好可以实现您所需的功能。请查看他们的 GitHub 存储库,了解更多详情:https://github.com/ingwarsw/arquillian-suite-extension
英文:
It's not part of the core functionality of Arquillian, but there's a popular Suite Extension which does exactly what you are looking for. Check their GitHub repo for more details https://github.com/ingwarsw/arquillian-suite-extension
答案2
得分: 0
我按照这个指南 https://rpestano.wordpress.com/category/arquillian/#multiple_deploy 进行操作。您需要创建一个单一的测试类,其中有一个方法被标记为 @Deployment,以及多个调用真实测试的 @Test 方法。真实的测试被编写在被注入到单一测试类中的 beans 中。
英文:
I followed this guide https://rpestano.wordpress.com/category/arquillian/#multiple_deploy
You create a single test class with one method annotated as @Deployment and multiple @Test methods that calls the real tests. Real tests are written in beans that are injected into the single test class
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论