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

Reports - json and html missing while running by an example (line filter) #1711

Closed
sricharanya opened this issue Jun 17, 2019 · 4 comments
Closed

Comments

@sricharanya
Copy link

With the following setup:
OS: Debian Linux AMD64
serenityCoreVersion = '2.0.49'
serenityCucumberVersion = '1.9.23'
junitVersion='4.12'
Gradle version: 4.8.1

While running serenity tests by a specific example (line number filter) as follows:

./gradlew test -Dcucumber.options="classpath:features/some.feature:21"

the console output logs reports that the tests have passed but the target/serenity/ folder does not contains the .json, .html or the .xml files.
Strangely this is happening only on a Linux system and not on the Windows PC.
While placing debug breakpoints, I observed that during the "finishExample" call, the baseStepListeners list becomes empty.

Please find attached some screenshots.
Screenshot from 2019-06-12 17-24-11
Screenshot from 2019-06-12 17-23-49

Please note that, I did try to reproduce this using serenity-cucumber-starter github project but not reproducible.

@wakaleo
Copy link
Member

wakaleo commented Jun 17, 2019

I can't reproduce this on a Mac either. It might be a project-specific issue. Can you provide a sample project?

@sricharanya
Copy link
Author

We could not get a trimmed down version of our project working or reproduce the issue with cucumber starter project. The json and html reports are generated but aggregation failed.

But here is the observation from one of the developers:
Examples from same scenario created json and html files with same scenario name.
This caused issues while uploading files and while generating aggregate reports.
Tried commenting serenity.compress.filenames property, html and json files had same id.
Need to find a solution for this problem.

@wakaleo
Copy link
Member

wakaleo commented Mar 11, 2020

It is generally a good idea to avoid duplicated scenario names; could you give me an example of duplicated scenario names you are seeing?

@wakaleo
Copy link
Member

wakaleo commented Mar 11, 2020

If this is urgent you can always raise a support ticket or sign up for a support contract - that would allow us to prioritise the issue.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants