Skip to content
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

Cucumber 0.8.1 compatibility issue #843

Closed
MartinDelille opened this issue Oct 25, 2015 · 2 comments
Closed

Cucumber 0.8.1 compatibility issue #843

MartinDelille opened this issue Oct 25, 2015 · 2 comments

Comments

@MartinDelille
Copy link

I have a strange bug that occurs only when wdio is ran from the local package when using the cucumber framework.

$ node_modules/webdriverio/bin/wdio cucumber.conf.js

My feature
events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: stepResult.isSuccessful is not a function
    at CucumberReporter.handleStepResultEvent (/path/to/my/project/node_modules/webdriverio/lib/frameworks/cucumber.js:50:24)

0 passing

If I run 'wdio' using the globally installed package, it works:

$ wdio cucumber.conf.js

My feature
  Checking the title
    - I am going to the website "http://localhost:9000"
    - I check the title
    - it is equal to "Pouet"

0 passing (3.40s)
3 pending
@MartinDelille
Copy link
Author

I realized I had different cucumber version:

  • local: 0.8.1
  • global: 0.7.0

Forcing my local cucumber version to 0.7.0 fix the problem. The cucumber framework implementation seems to be outdated. The first problem come from this line:https://github.com/webdriverio/webdriverio/blob/master/lib/frameworks/cucumber.js#L50

@MartinDelille MartinDelille changed the title events.js:141 throw er; // Unhandled 'error' event Cucumber 0.8.1 compatibility issue Oct 25, 2015
@christian-bromann
Copy link
Member

Thanks for pointing this out. We probably won't fix that in v3.x anymore but I created in issue in the wdio-cucumber-framework project to address this update.

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants