serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

Reports not generated after moving from Thucydides to Serenity #1

Closed mthmulders closed 9 years ago

mthmulders commented 9 years ago

Just switched from Thucydides to Serenity BDD; now my report isn't being generated. I have the following dependencies in my pom.xml:

and the following plugins

Using Maven 3.0.5 on Java 8, I have get this message:

[ERROR] Failed to execute goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate (thucydides-reports) on project styd-test: Execution thucydides-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate failed: An API incompatibility was encountered while executing net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker

What could be the issue here?

wakaleo commented 9 years ago

Thanks for raising an issue for this - it's a dependency conflict with guice in the transitive dependencies. It's fixed in the latest code base, but the work-around for now is to add the guice dependency directly to the maven plugin, e.g.

net.serenity-bdd.maven.plugins serenity-maven-plugin ${serenity.maven.version} com.google.inject guice 3.0 compile serenity-reports post-integration-test aggregate

On 16 November 2014 09:15, Maarten Mulders notifications@github.com wrote:

Just switched from Thucydides to Serenity BDD; now my report isn't being generated. I have the following dependencies in my pom.xml:

  • net.serenity-bdd:core:1.0.6
  • net.serenity-bdd:serenity-junit:1.0.6
  • net.serenity-bdd:serenity-cucumber:1.0.2 (no 1.0.6 here?)

and the following plugins

  • net.serenity-bdd.maven.plugins:1.0.6
  • org.apache.maven.plugins:maven-site-plugin:3.4 with reportPlugins -> net.serenity-bdd.maven.plugins:1.0.6.

Using Maven 3.0.5 on Java 8, I have get this message:

[ERROR] Failed to execute goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate (thucydides-reports) on project styd-test: Execution thucydides-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate failed: An API incompatibility was encountered while executing net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.6:aggregate: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker

What could be the issue here?

— Reply to this email directly or view it on GitHub https://github.com/serenity-bdd/serenity-maven-plugin/issues/1.


John Smart | Wakaleo Consulting | +61 407 247 642 Optimizing your software development process http://www.wakaleo.com | john.smart@wakaleo.com


The dates for the 2014 BDD workshops have been scheduled! Check out our upcoming BDD/TDD Master classes http://wakaleo.com/training/testing-and-tdd-for-java-developers and our Advanced BDD Requirements Workshops http://wakaleo.com/training/advanced-agile-requirements-workshop, coming soon to Sydney http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses and Melbourne http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses!


prak0628 commented 8 years ago

In my group , we are using serenity with JBehave . We are trying to create an executable jar for our functional testers so that they can double click on the jar and execute the test.For the same iam not able to call the aggregate phase since the executable jar does not have a pom.xml to do so. May i please know is there any way for us to create JSON reports and the call the aggregate method via java code for eg: In @afterStories annotation. Please advice on this.