webdemos / karma-cucumber-demo

A demo shows how to use `karma-cucumber-js`
MIT License
1 stars 0 forks source link

Karmar Cucumber Demo

Generate Step Definitions

Copy you feature file to step_factories folder(please note generate one feature's steps once), and then run below npm command:

$ npm run ut:cucumber:create-steps

After run this command, a .temp folder will generated under step_factories folder. And there will be a file with suffix .steps.js under .temp folder, you can change it's content by modify javascript_syntax.js.

Start UT

Before starting it's better for you to take a look at angular-midway first.

$ npm run ut:cucumber

Report

  1. Code coverage report.
  2. BDD feature report.
  3. Jasmine style report.
  4. A beautiful angular style report.

TODO:

  1. Enhance angular midway.
  2. Add E2E testing with Cucumber.
  3. Add unit testing with karma-jasmine-feature

Issues

Any issues defected please submit here