项目作者: rhpijnacker

项目描述 :
cucumber-js interface for intern
高级语言: JavaScript
项目地址: git://github.com/rhpijnacker/intern-cucumber.git
创建时间: 2018-01-18T14:50:04Z
项目社区:https://github.com/rhpijnacker/intern-cucumber

开源协议:BSD 3-Clause "New" or "Revised" License

下载


intern-cucumber

cucumber-js interface for intern

See https://theintern.io/docs.html#Intern/4 for details on how to start testing with Intern.

Quickstart

Install intern and intern-cucumber

npm install --save-dev intern intern-cucumber

Add the plugin to your intern.json:

  1. "browser": {
  2. "plugins": {
  3. "node_modules/intern-cucumber/browser/plugin.js"
  4. }
  5. }
  6. "node": {
  7. "plugins": {
  8. "node_modules/intern-cucumber/plugin.js"
  9. }
  10. }

Load the interface and write tests:

  1. const { registerCucumber, Given, When, Then } = intern.getInterface('cucumber');
  2. registerCucumber(<name>, <featureSource>, <support functions>);

See https://github.com/rhpijnacker/intern-cucumber-examples for more examples