serenity-bdd / serenity-cucumber4-starter

48 stars 73 forks source link

How to log info, err, warn to serenity html report #4

Open belurharish opened 5 years ago

belurharish commented 5 years ago

First of all thanks for your effort to create serenity-cucumber4. Its very helpful for me. I appreciate it. I have two questions:

  1. I want to print a message/log on serenity report, how to do it? I know slf4j logs messages on the console as explained here: https://github.com/serenity-bdd/serenity-jbehave/issues/213 but I need to print it on the html report. Let me know if there is a way to do it.
  2. Is there a way to print AssertJ success or failure reasons. For ex: assertThat(frodo.getAge()).as("check %s's age", frodo.getName()) .isEqualTo(100); Here I want to write if my check is successful, on failure, it report should contain information as to why it failed.

<Please pardon me as I'm not raising any issue here, rather I'm looking for a solution.>

kirichenkoalex commented 5 years ago

I have the same question where can I find or how can I set up Serenity html report in the circleci, is this ci supports html reports? I can't find info :(