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
Not using env files #29
Comments
@jinky32 thanks very much for reporting this issue (and helping us to improve our tutorial)! First, can you give us a bit more info about your system: what Operating System are you using? |
I just tried the steps in the Quick-start: git clone https://github.com/dwyl/learn-nightwatch.git
cd learn-nightwatch
npm install
npm test I'm running on a Mac but the experience should be the same on Linux/Windows... @jinky32 if you can give as a bit more insight or even upload a screenshot we'd love to help you make progress! 👍 |
@nelsonic thanks for the quick reply. I'm running Ubuntu 16. The below is what I get out of the box If I modify package.json from However if (with the modified package.json) I run |
Hmm, actually I say all good, but I can't make the test fail. For example if i modify the github test to look for some other copy in the body no failure is reported |
@jinky32 this is very strange. 😕 |
I downloaded the git repo as a zip, extracted to "A:\vpubweb\testing", then ran the following commands in a terminal: EDIT: Following the directions on https://github.com/dwyl/env2#how, and now the error is gone. (Creating an .env file then installing env2) Perhaps this should be mentioned on the learn-nightwatch page? |
@cepm-nate Yeah, let's add a note in the Readme! 👍 |
How Do we Configure Different environments in VSTS for Running the Smoke tests in Dev env and Regression in QA env |
@gaddamsridhar6 this is a good question, worthy of a separate/new issue. 👍 |
Hi,
I used the quick version of the tutorial - cloning the repo locally etc. However when I try and run my tests I get an error:
WARNING: env2 was required to load an .env file: learn-nightwatch/.env NOT FOUND!
If I comment out the
require('env2')('.env')
at the top of the nightwatch.conf.js I still get annpm ERR!
although it no longer mentions the missing file. However after i run thenpm test
command I can see that it's runningnightwatch --env local
.How do I resolve this?
The text was updated successfully, but these errors were encountered: