serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

Report is generated with incorrect tabs #75

Open SiKing opened 4 years ago

SiKing commented 4 years ago

I have my tests hierarchy something like:

src/test/java
+ features.feature_one
+- SomeStory.java
+ features.feature_two
+- AnotherStory.java

My pom configuration is

<plugin>
    <groupId>net.serenity-bdd.maven.plugins</groupId>
    <artifactId>serenity-maven-plugin</artifactId>
    <version>${serenity.plugin.version}</version>
    <dependencies>
        <dependency>
            <groupId>net.serenity-bdd</groupId>
            <artifactId>serenity-emailer</artifactId>
            <version>${serenity.plugin.version}</version>
        </dependency>
    </dependencies>
    <configuration>
        <reports>email</reports>
    </configuration>
    <executions>
        <execution>
            <phase>post-integration-test</phase>
            <goals>
                <goal>aggregate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

In my serenity.properties I have:

serenity.test.root = features

When I navigate to the the report (index.html), I only see a "Requirements" tab and no others.

According to the documentation: "By default, if you group your test cases in a single level of directories ..., Serenity will treat each directory as a feature." So I am expecting to see a "Features' tab.

When I click on the Requirements tab, it just says "Requirements Overview" and the rest of the page is empty.

When I navigate all the way to an individual test, then I see additional tabs: "Features" and "Stories". However, clicking on either of these produces "404 Not Found".

wakaleo commented 4 years ago

What versions of the serenity dependencies are you using

SiKing commented 4 years ago

I am using serenity.plugin.version = 2.1.0.

wakaleo commented 4 years ago

Broken links often indicate a version conflict. Try using 2.2.2 for all versions and replacing serenity-emailer with serenity-single-page-report.

SiKing commented 4 years ago

Still same problem with version 2.2.2.

wakaleo commented 4 years ago

Can you provide a sample project that reproduces the issue?

SiKing commented 4 years ago

I started with mvn archetype:generate -Dfilter=screenplay, and just upped the serenity version. Note that I left the target/site directory, as it was generated on my machine. todomvctests.zip

SiKing commented 4 years ago

I also noticed there is a @Narrative in features/search/package-info.java, but that text does not appear anywhere in the report. Or maybe I missed something?