reportportal / agent-java-cucumber2

Cucumber JVM version [2.0.0; 3.0.0) adapter
Apache License 2.0
1 stars 8 forks source link

With io.cucumber:cucumber-java:3.x throws error #3

Closed garikKalash closed 6 years ago

garikKalash commented 6 years ago

Is added agent-java-cucumber2 with io.cucumber:cucumber-java:3.0.2 , and as a result have this error

java.lang.IncompatibleClassChangeError: Found interface cucumber.api.TestCase, but class was expected...

problem solves when I decrease the version of cucumber into 2.x,

tested for 3.0.1, 3.0.0 versions to the same error throws.

scormaq commented 6 years ago

@garikKalash that's right, cucumber-jvm 3.x has breaking changes. From its announcement (https://cucumber.io/blog/2018/05/19/announcing-cucumber-jvm-3-0-0): To support the invoke around semantics the TestStep event has been replaced with an interface. Its concrete implementation split into HookTestStep and PickleStepTestStep. All subclass specific methods in TestStep have been deprecated.

So it is not an agent issue. I think there should be another agent-java-cucumber3 agent to support cucumber-jvm 3+ 😃

DzmitryHumianiuk commented 6 years ago

@garikKalash @scormaq folks, could you plz push first lines of cone for agent-java-cucumber3?

revaultch commented 6 years ago

Haven't done a full non-regression testing, but for now it seems to be a matter of recompilation: https://github.com/revaultch/agent-java-cucumber3

https://jitpack.io/#revaultch/agent-java-cucumber3

        <dependency>
            <groupId>com.github.revaultch</groupId>
            <artifactId>agent-java-cucumber3</artifactId>
            <version>add1e21fc3</version>
        </dependency>
DzmitryHumianiuk commented 6 years ago

@revaultch awesome! forked

revaultch commented 6 years ago

I moved the changes to branches:

https://jitpack.io/#revaultch/agent-java-cucumber