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

wdio.conf.ejs not created #2215

Closed
sarahdayan opened this issue Jul 29, 2017 · 4 comments
Closed

wdio.conf.ejs not created #2215

sarahdayan opened this issue Jul 29, 2017 · 4 comments

Comments

@sarahdayan
Copy link

sarahdayan commented Jul 29, 2017

The problem

I experienced the exact same problem as #1568 that was closed back then but reported again by aztack.

When I try to configure Webdriver IO after installing it, I get an error just after going through the question interface:

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? mocha
? Shall I install the framework adapter for you? Yes
? Where are your test specs located? ./test/*.js
? Which reporter do you want to use?  spec - https://github.com/webdriverio/wdio-spec-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup?  selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone
-service
? Shall I install the services for you? Yes
? Level of logging verbosity command
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

Installing wdio packages:

Packages installed successfully, creating configuration file...
fs.js:651
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/helpers/wdio.conf.ejs'
    at Object.fs.openSync (fs.js:651:18)
    at Object.fs.readFileSync (fs.js:553:33)
    at renderConfigurationFile (/Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/cli.js:292:28)
    at /Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/cli.js:282:17
    at /Users/sarahdayan/Projets/communitytalk.com/node_modules/npm-install-package/index.js:31:5
    at ChildProcess.exithandler (child_process.js:262:7)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:897:16)
    at Socket.stream.socket.on (internal/child_process.js:340:11)
npm ERR! Test failed.  See above for more details.

Environment

Detail

I managed to curcumvent the problem by saying no to framework installation and skipping the selection of a reporter and adding a service to my test setup:

? Shall I install the framework adapter for you? No
? Which reporter do you want to use?
? Do you want to add a service to your test setup?

I then installed them and edited the wdio.conf.js manually but that's not ideal.

Thanks in advance!

@christian-bromann
Copy link
Member

Can you try with Node v7.x?

@sarahdayan
Copy link
Author

@christian-bromann Just tried with several versions of Node (v6.11.1, v7.0.0, v8.1.3, v8.2.1) and oddly, all passed 😶 Maybe something was wrong with my local copy of Node when I tried it the first time.

I guess anyone with the same problem would only need to reinstall or upgrade Node and that should do it.

@jtheodore-rent
Copy link

I'm getting the same issue - using node v8.1.2

@istana
Copy link

istana commented Aug 8, 2017

I bumped into the same problem: node 8.2.1+yarn doesn't work v0.27.5, node 8.2.1 + npm 5.3.0 works, node 7.10.1 + yarn works. Any ideas where the problem can be?

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? cucumber
? Shall I install the framework adapter for you? Yes
? Where are your feature files located? ./features/**/*.feature
? Where are your step definitions located? ./features/step-definitions
? Which reporter do you want to use?  spec - https://github.com/webdriverio/wdio-spec-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup?  selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone-service,  phantomjs - https://github.com/cognitom/wdio-phantomjs-serv
ice
? Shall I install the services for you? Yes
? Level of logging verbosity silent
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

the error is the same

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

4 participants