Serenity BDD 多模块 JUnit 剧本报告聚合问题
Serenity BDD Multi-Module JUnit Screenplay Report Aggregation Problems
我正在设置一个 多模块 maven 项目来使用 junit[=43= 为基于大型浏览器的应用程序创建 UI 测试] 和 剧本 bdd 模式。
每个模块都按预期单独工作和报告,但是,如果我尝试 运行 项目顶层的测试 - 测试 运行,但报告 不包括所有子模块。
我收到一份报告,其中仅包含其中一个模块的详细信息。
我创建了一个简单的测试示例如下;
"simple" Maven 项目是在 Eclipse 中创建的,模块测试项目是使用
创建的
mvn archetype:generate -Dfilter=screenplay
并修改了每个测试都不同的测试。
pom 已更新为使用宁静版本 2.0.81
我在项目的各级pom中有如下内容
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.version}</version>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
项目文件夹结构为;
UITesting
pom.xml
serenity.properties
demo_one
src
test
java
resources
uk / co / test /
features
feature_folder_one
package-info.java
StoryClassOne.java
tasks
ui
pom.xml
serenity.properties
demo_two
src
test
java
resources
uk / co / test /
features
feature_folder_two
package-info.java
StoryClassTwo.java
tasks
ui
pom.xml
serenity.properties
and same for demo 3
并且我在每个级别serenity.properties文件中设置了输出目录
serenity.outputDirectory=c:/temp/uireport
我希望“需求”、“功能”和“案例”选项卡合并所有子模块报告数据。实际测试和标签合并,但没有其他。
serenity core github 问题状态对此的一些反馈;
This won't happen automatically - multi-module tests aren't supported in this way.
我正在设置一个 多模块 maven 项目来使用 junit[=43= 为基于大型浏览器的应用程序创建 UI 测试] 和 剧本 bdd 模式。
每个模块都按预期单独工作和报告,但是,如果我尝试 运行 项目顶层的测试 - 测试 运行,但报告 不包括所有子模块。
我收到一份报告,其中仅包含其中一个模块的详细信息。
我创建了一个简单的测试示例如下;
"simple" Maven 项目是在 Eclipse 中创建的,模块测试项目是使用
创建的mvn archetype:generate -Dfilter=screenplay
并修改了每个测试都不同的测试。
pom 已更新为使用宁静版本 2.0.81
我在项目的各级pom中有如下内容
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.version}</version>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
项目文件夹结构为;
UITesting
pom.xml
serenity.properties
demo_one
src
test
java
resources
uk / co / test /
features
feature_folder_one
package-info.java
StoryClassOne.java
tasks
ui
pom.xml
serenity.properties
demo_two
src
test
java
resources
uk / co / test /
features
feature_folder_two
package-info.java
StoryClassTwo.java
tasks
ui
pom.xml
serenity.properties
and same for demo 3
并且我在每个级别serenity.properties文件中设置了输出目录 serenity.outputDirectory=c:/temp/uireport
我希望“需求”、“功能”和“案例”选项卡合并所有子模块报告数据。实际测试和标签合并,但没有其他。
serenity core github 问题状态对此的一些反馈;
This won't happen automatically - multi-module tests aren't supported in this way.