Saturday, 4 November 2017

Help with install ooptions

Hello,As a side project in work, i've decided to set up a test automation framework and, as the tests will focus mostly on running end to end/acceptance tests on webapps, nightwatch seems to be the perfect fit.I have it up and running as is but i'm also interested in using cucumber.js with it to create human readable tests. I found an excellent git repo that has done the work for me but i'm a bit confused by the install instructions and have some questions if someone could be so kind:The Nightwatch docs state that nightwatch should be installed globally which makes sense to me as it allows me to run the command from anywhere, right? However the nightwatch/cucumber repo states that they should both be installed locally. Can someone explain the benefits of installing npm packages locally?A lot of npm instructions state that i should use npm package name --save-dev? Could someone explain why that is? I've had a look but don't really understand the why saving one to dev or prod should matter in my case.Hopefully this makes sense.Please forgive me if this is all basic stuffHave a good day Allynightwatch/cucumber git repo - http://ift.tt/2hbPTek

Submitted November 04, 2017 at 01:02PM by allyc31

No comments:

Post a Comment