nightwatchjs / create-nightwatch

Nightwatch.js init command tool to setup everything up in no time using `npm init nightwatch`
https://nightwatchjs.org
4 stars 13 forks source link

Combine `cd` command with test run commands. #96

Closed garg3133 closed 1 year ago

garg3133 commented 1 year ago

Currently, commands to run example tests appear as follows:

image

But most of the time users skip the cd command. So, instead of specifying the cd command separately, it should be specified with the example commands as follows:

🚀 RUN EXAMPLE TESTS 

To run all examples, run:
  cd nightwatch-project
  npx nightwatch ./nightwatch/examples

To run a single example (ecosia.js), run:
  cd nightwatch-project
  npx nightwatch ./nightwatch/examples/basic/ecosia.js
gpsinghsandhu commented 1 year ago

@garg3133 Is this about updating the readme or do we want to update the setup instructions? For setup instructions, can you point me to the source for it.

@AutomatedTester I think this is already fixed here - https://github.com/nightwatchjs/nightwatch-setup-tools/commit/fecdb549dd3cea6bba942294246a07621a912c81 (look at changes with 'directoryChange')

AutomatedTester commented 1 year ago

looks like you're right @gpsinghsandhu !