Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report is generated with incorrect tabs #75

Open
SiKing opened this issue May 5, 2020 · 7 comments
Open

Report is generated with incorrect tabs #75

SiKing opened this issue May 5, 2020 · 7 comments

Comments

@SiKing
Copy link

SiKing commented May 5, 2020

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
Copy link
Member

wakaleo commented May 5, 2020

What versions of the serenity dependencies are you using

@SiKing SiKing changed the title Report is being generated with incorrect tabs Report is generated with incorrect tabs May 5, 2020
@SiKing
Copy link
Author

SiKing commented May 5, 2020

I am using serenity.plugin.version = 2.1.0.

@wakaleo
Copy link
Member

wakaleo commented May 5, 2020

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
Copy link
Author

SiKing commented May 5, 2020

Still same problem with version 2.2.2.

@wakaleo
Copy link
Member

wakaleo commented May 5, 2020

Can you provide a sample project that reproduces the issue?

@SiKing
Copy link
Author

SiKing commented May 5, 2020

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
Copy link
Author

SiKing commented May 5, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants