serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

How to use custom reporters properly? #45

Closed vaha closed 7 years ago

vaha commented 8 years ago

Hi,

I want to use custom reporters in my projects. I found that this could be done by implementing the interface UserStoryTestReporter and adding env parameter like -Dserenity.custom.reporters.myreporter=my.project.CustomReporter . But I'm getting ClassNotFoundException

wakaleo commented 8 years ago

Is this when you run the Maven plugin?

vaha commented 8 years ago

Yes, I'm running in the following manner: clean test serenity:aggregate -Dserenity.custom.reporters.myreporter=my.project.CustomReporter

wakaleo commented 8 years ago

Then you will need to make sure your reporter class is added as a dependency to the maven-serenity-plugin configuration.

wakaleo commented 7 years ago

I'm assuming you got this working? Please post any other questions on stack overflow if you have any other issues.