如何使用 Maven 运行协和测试?
我想知道如何设置 Maven 来运行具有 FooFixture.java 命名约定的协和测试。测试位于 src/test/specs 中的类路径上。我想在单独的配置文件中执行此操作。
感谢您的帮助。
I am wondering how to set up maven to run concordion tests having a FooFixture.java naming convention. The tests are on the classpath in src/test/specs. I would like to do it in a separate profile.
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最终通过创建不同的配置文件来运行验收测试来设置测试。
这里给出一个例子:
I finally set the tests up is by creating a different profile to run the acceptance tests.
An example given here:
您可以使用 Maven 故障安全插件在集成测试阶段运行单元 Concordion 测试。它类似于 Surefire 插件。
You can use the maven failsafe plugin to run unit Concordion tests in the integration-test phase. Its similar to the surefire plugin.