Serenity BDD 报告不显示带有示例的故事(嵌入式表格)

Serenity BDD report does not show stories with Examples (Embedded tables)

我的所有故事都出现在 Serenity 报告中时遇到问题。

当我使用 Maven 运行 它们时 (mvn clean verify) 我可以在输出中看到它们并且它们 运行 通过所有示例但是当我打开生成的报告时这 target\site\serenity 文件夹中没有它们。

报告插件以某种方式遗漏了它们,有问题的故事是 示例:.

我有一个 class,它是 TestSuit 和 运行 的所有故事,Steps 是在其他 class 中组织的:

public class BddTestSuite extends SerenityStories {

private static final Logger LOGGER = LoggerFactory.getLogger(BddTestSuite.class);

@BeforeStories
public void setUp(){
    LOGGER.info(
        "\n===========================================================================" +
        "\n>>>>>>>>>>> STARTING THE INTEGRATION TEST-SUITE " +
        "\n===========================================================================");
    }
}

我的故事:

Narrative:
Short description

Scenario: Scenario title
Given a given with param1 <param1>
And a given with param2 <param2>
When a when with param3 <param3>
Then a then with param1 <param1>,  param2 <param2> and  param3 <param3>
Examples:
|param1|param2|param3|
|val11|val12|val13|
|val21|val22|val23|

我的pom.xml:

        <build>
                .
                .
                .
            <plugins>
                .
                .
                .
                <!--Running integration tests-->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${failsafe.plugin.version}</version>
                    <configuration>
                        <includes>
                            <include>**/integration/**/*.java</include>
                        </includes>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>integration-test</goal>
                                <goal>verify</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <!--Building Serenity report for BDD stories (integration tests)-->
                <plugin>
                    <groupId>net.serenity-bdd.maven.plugins</groupId>
                    <artifactId>serenity-maven-plugin</artifactId>
                    <version>${serenity.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>net.serenity-bdd</groupId>
                            <artifactId>serenity-core</artifactId>
                            <version>${serenity.version}</version>
                        </dependency>
                    </dependencies>
                    <executions>
                        <execution>
                            <id>serenity-reports</id>
                            <phase>post-integration-test</phase>
                            <goals>
                                <goal>aggregate</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>

我已经通过将 serenity-maven-plugin 更新到 1.1.42 版本来修复它