prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

Wiremock and Courgette - Report not getting generated #357

Closed SundarHubTest closed 1 year ago

SundarHubTest commented 1 year ago

Hi Prashant, In need of your help to resolve below two issues:

  1. Do i have any option to run a step after the feature instead of scenario.
  2. Courgette report is not getting genarted ( even on successfull execution ) due to error "[Courgette Runner] There was an unexpected error processing the individual Cucumber report files and Courgette was unable to create any reports for this test run." When i have the pom.xml with below dependencies :
com.github.tomakehurst wiremock 2.27.2 com.google.guava guava com.fasterxml.jackson.core jackson-core org.apache.httpcomponents.client5 httpclient5
prashant-ramcharan commented 1 year ago

Hello,

You need the jackson dependency. Trying adding this to your pom.xml

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.13.3</version>
        </dependency>

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <version>2.13.3</version>
        </dependency>
SundarHubTest commented 1 year ago

Added the above depedency and still facing same issue. When i execute the test I noticed the below image when test execution is getting complete, the "courgette-report" folder is become blank. image

prashant-ramcharan commented 1 year ago

Can you run mvn dependency:tree and provide the output?

From the External Libraries menu in your IDE, expand the Courgette library and expand courgette -> runtime -> utils

If you look at the class JacksonUtils and see any issues with this class such as missing deps (code in red) then this would suggest you missing the Jackson dependency.

SundarHubTest commented 1 year ago

Yes, after I updated my pom as below. I able to see report get generated successfully. I hope the issue might have occured due to version incompatability between wiremock and courgette jackson. Thank you

com.github.tomakehurst wiremock 2.27.2 com.google.guava guava com.fasterxml.jackson.core jackson-databind com.fasterxml.jackson.core jackson-annotations org.apache.httpcomponents.client5 httpclient5 com.fasterxml.jackson.core jackson-core 2.13.3
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.13.3</version>
    </dependency>