-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Serenity report does not contain scenario html pages #3310
Comments
Running the tests from a fat Jar is not a feature Serenity supports currently. |
@wakaleo That's the answer I was afraid of ;) Do you have any idea why some html files weren't be created? (When using earlier versions of serenity and junit 4 runners the report was still complete.) |
I don't really know, probably something to do with class loaders and classpaths - I would need to study the project itself to have an idea. |
@wakaleo The problem is caused by calling HtmlAggregateStoryReporter programatically. When I'm using the serenity-gradle-plugin's aggregate task the report is complete. I've seen that the HtmlAggregateStoryReporter can be called with a number of different parameters. I'm just using the project key currently. Could there be other parameters which are needed? |
@wakaleo Great news! I found a simple solution for the reporter. I had a look to the AggregateTask and found one method call which I have added to the reporter:
Now, the reports are complete! :-) |
What happened?
I'm running serenity cucumber tests from within main class inside of a fat jar programatically:
Afterwards the serenity report is created as below:
Test classes are annotated this way:
To be able to run the above test case from within fat jar it was necessary to apply the below dependencies:
Unfortunately, the serenity report is not complete i.e. I can open the overview page but no scenario pages. They are simply missing the "target/site/serenity" folder. When running the main class in IDE the report is complete. Thus, I have some doubts about the usage of junit-platform-console-standalone.
What did you expect to happen?
The report should be complete.
Serenity BDD version
4.0.15
JDK version
11.0.21
Execution environment
macOS 12.7.1
Chrome 118
How to reproduce the bug.
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered: