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

Test cannot find step_definition #9

Open
daisy1754 opened this issue Oct 2, 2017 · 1 comment
Open

Test cannot find step_definition #9

daisy1754 opened this issue Oct 2, 2017 · 1 comment

Comments

@daisy1754
Copy link

Cloned repo, updated config, and run command in README. I got test failure. It seems test could not find step_definitions file.

$ ~/repos/cucumber-js-browserstack $ npm install                                                                      [master]
npm WARN [email protected] No license field.

up to date in 0.525s
# ~/repos/cucumber-js-browserstack $ npm run single                                                                   [master]

> [email protected] single /Users/foo/cucumber-js-browserstack
> CONFIG_FILE=single ./node_modules/cucumber/bin/cucumber.js features/single.feature

(node:3762) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
UUU

Warnings:

1) Scenario: Can find search results # features/single.feature:3
   ? When I type query as "BrowserStack"
       Undefined. Implement with the following snippet:

         When('I type query as {string}', function (string, callback) {
           // Write code here that turns the phrase above into concrete actions
           callback(null, 'pending');
         });

   ? Then I submit
       Undefined. Implement with the following snippet:

         Then('I submit', function (callback) {
           // Write code here that turns the phrase above into concrete actions
           callback(null, 'pending');
         });

   ? Then I should see title "BrowserStack - Google Search"
       Undefined. Implement with the following snippet:

         Then('I should see title {string}', function (string, callback) {
           // Write code here that turns the phrase above into concrete actions
           callback(null, 'pending');
         });


1 scenario (1 undefined)
3 steps (3 undefined)
0m00.000s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] single: `CONFIG_FILE=single ./node_modules/cucumber/bin/cucumber.js features/single.feature`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] single script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/foo/.npm/_logs/2017-10-02T17_13_20_268Z-debug.log
@pulkitsharma07
Copy link
Contributor

pulkitsharma07 commented Oct 9, 2017

Fixed with #10 and #6, you should be able to run your tests now :-)

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