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

[launcher] Error: Error: config.framework (cucumber) is not a valid framework. #475

Closed
pellekrogholt opened this issue Dec 15, 2015 · 3 comments

Comments

@pellekrogholt
Copy link

I have a project setup with cucumber-js (0.9.2) setup with protractor (3.0.0) using this config:

// protractor configuration file for cucumber
exports.config = {
  allScriptsTimeout: 11000,
  specs: [
    'features/**/*.feature'
  ],
  capabilities: {
    'browserName': 'chrome'
  },

  baseUrl: 'http://192.168.1.187:8000',
  seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
  framework: 'cucumber',
  cucumberOpts: {
    require: 'features/',
    format: "pretty"
  }
};

when I run the cucumber tests I get:

> protractor config.js

Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
[launcher] Error: Error: config.framework (cucumber) is not a valid framework.
...

when I run protrator with jasmine e2e tests then it works(tm) for that reason I post the issue here and not in protractor pardon me if I wrong.

@pellekrogholt
Copy link
Author

Ok I finally realized that cucumber was removed from protractor. Running cucumber.js standalone worked smoothly:

./node_modules/.bin/cucumber.js features/homepage.feature 

Cucumber has to be set in the protractor (3.0.0) configuration as a custom framework ~ https://github.com/angular/protractor/blob/master/docs/frameworks.md#using-cucumber:

...
framework: 'custom',
frameworkPath: 'node_modules/protractor-cucumber-framework',
...

So it has nothing to do with cucumber-js. Sorry for the noise.

@ghost
Copy link

ghost commented Dec 31, 2015

Sorry for the noise

@pellekrogholt Thanks for explaining the issue. Google got me here, you saved me a lot of time.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant