Arquillian – 所有测试的单一部署

huangapple go评论77阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年10月7日 04:35:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/64233456.html
匿名

发表评论

匿名网友

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

确定