Jav*_*mae 5 gwt integration-testing maven
我正在使用 Maven 构建 GWT 应用程序。我们在 Maven 中使用一个父模块和多个子模块。我们决定为集成测试创建一个单独的模块,因为在同一模块中将集成测试与单元测试分开似乎很麻烦。但是,当我们尝试从单独的 Maven 模块运行 GwtTestCase 测试时,事实证明这是有问题的;具体来说,我们无法找到一种简单的方法来进行测试以查看 Eclipse 或 Maven 中应用程序的入口点。
使用 Maven 时是否有构建 GWT 集成测试的好方法?将它们留在 GUI 模块中并尝试使用 Maven 配置文件将集成测试与单元测试分开是最好的选择吗?
小智 0
我们不会将集成测试提取到单独的模块中
在我们的项目中我们是这样实现的:
<profiles>
<profile>
<id>nointegration</id>
<properties>
<integration.tests.includes>none</integration.tests.includes>
</properties>
</profile>
...
</profiles>
Run Code Online (Sandbox Code Playgroud)
当我们不想运行集成测试时:
mvn clean install -Pnointegration
Run Code Online (Sandbox Code Playgroud)
所以只运行了通常的非集成测试
归档时间: |
|
查看次数: |
335 次 |
最近记录: |