项目作者: otomer

项目描述 :
Playing with End-to-End testing with Nightwatch.js framework
高级语言: JavaScript
项目地址: git://github.com/otomer/nightwatch-play.git
创建时间: 2020-04-11T14:04:44Z
项目社区:https://github.com/otomer/nightwatch-play

开源协议:

下载


nightwatch

Nightwatch.js tryout playground

End-to-End testing with Nightwatch.js framework

Install/Upgrade ChromeDriver

brew cask install chromedriver

or

brew cask upgrade chromedriver

Setup Nightwatch.js with first test

  1. $ npm install nightwatch --save-dev
  2. $ npm install chromedriver --save-dev
  3. $ # 1. Create nightwatch.conf.js with the content from https://nightwatchjs.org/gettingstarted/configuration/
  4. $ # 2. Create `tests` folder with `firstTest.js` file in it (make a simple test)
  5. $ # 3. Add "test": "nightwatch" to scripts @ package.json
  6. $ # 4. For easy debugging, add "debug": "node --inspect-brk node_modules/.bin/nightwatch" to scripts @ package.json
  7. $ # 5. Make sure your Chrome version aligns with "chromedriver": "^xx.0.0" @ package.json
  8. $ npm run test
  9. $ # or: npm run debug