-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Incompatible class change error #1392
Comments
Could you please provide the code you are running and how you are running it, so i cam try tp reproduce? Thanks! |
Apologies for not adding this earlier. I'm using a feature file that contains scenarios in gherkin. The scenario steps are linked to step definitions. All written in java using cucumber. The tests were all working fine when I was on Cucumber 2.1.0. However, when I upgraded to Cucumber 3.0.2, I got the error message mentioned above. I think it may be related to multiple choices of the same dependency or an interface becoming a class or vice versa. I have included a more expanded version of my pom file below:
|
This is caused by IDEA's CucumberJvm2SMFormatter. It being the formatter for Cucumber2, runs into a breaking change in Cucumber 3. If you remove |
Many thanks, it works fine now |
Please vote https://youtrack.jetbrains.com/issue/IDEA-192612 |
When I have updated cucumber plugin from V1.2.4[info.cukes] to V.4.2.2[io.cucumber] With the below code, i am getting error, The import cucumber.api.java.en.Given(Or When/Then) cannot be resolved
RunFile from where execution is starting public class FunctionalRunCuke { Please suggest, what is the mistake |
@RajaRaviTeja Please don't comment on closed issues. If you want help using Cucumber, please try one of the support options. |
@RajaRaviTeja But to give a hint: Note that you are using both Junit and TestNG dependencies, and the testng dependency is a different version. |
Summary
Tried to run a test after upgrading from Cucumber 2.1.0 to 3.0.2
Expected Behavior
Test runs successfully
Current Behavior
The following exception is thrown:
Possible causes
Here are some of the versions of the dependencies for the project. Maybe related?
Environment
Mac OS X
IntelliJIDEA
The text was updated successfully, but these errors were encountered: