BDD-in-React
一个示例应用程序,展示了如何为 ReactJS Web 应用程序应用 BDD 工作流。
环境设置
$ git clone https://github.com/LittleLin/BDD-in-ReactJS.git
$ cd BDD-in-ReactJS
$ npm install --dev
$ npm install -g cucumber
$ npm install -g protractor
$ npm install -g webdriver-manager
$ webdriver-manager update --standalone
开始测试服务器
$ webdriver-manager start
启动应用服务器
$ npm start
运行Cucumber功能
$ npm test
你应该看到这样的输出: