js-given
JavaScript frontend to jgiven
Last updated 2 years ago by florent.legall .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install js-given 
SYNC missed versions from official npm registry.

JsGiven

Build Status Coverage Status Code Climate Known Vulnerabilities styled with prettier

GitHub license npm version Quality

JsGiven aims to bring BDD (Behavior-Driven Development) to plain (or typed) JavaScript.

It is a developer-friendly and pragmatic BDD tool for JavaScript.

Developers write scenarios in plain JavaScript using a fluent, domain-specific API, JsGiven generates reports that are readable by domain experts.

It's a JavaScript port of JGiven (written in Java). JsGiven keeps the JGiven philosophy, concepts and uses its html5 reporting tool.

You can have a look at JSGiven's own report

scenarios('recipes', RecipesStage, ({ given, when, then }) => ({
    a_pancake_can_be_fried_out_of_an_egg_milk_and_flour: scenario({}, () => {
        given()
            .an_egg()
            .and()
            .some_milk()
            .and()
            .the_ingredient('flour');

        when()
            .the_cook_mangles_everything_to_a_dough()
            .and()
            .the_cook_fries_the_dough_in_a_pan();

        then().the_resulting_meal_is_a_pan_cake();
    }),
}));

It can be used with any javascript test runner (like Jest, Ava, Mocha, Jasmine, or Protractor).

It can be used with your favorite assertion library (like ChaiJS, Jasmine), or your framework's assertion library.

It aims to provide the most comfortable developer experience with ES6 class syntax, and optional FlowType or TypeScript typings.

Some features are missing, but the folks at https://www.fluo.com are already using it daily.

Don't hesitate to give any feedback and to open a GitHub issue https://github.com/jsGiven/jsGiven/issues

Getting started

You can start using JsGiven with the user guide https://jsgiven.org/user-guide.html Don't hesitate to give any feedback and to open a GitHub issue https://github.com/jsGiven/jsGiven/issues

Current Tags

  • 0.1.8                                ...           latest (2 years ago)
  • 0.1.8-alpha.0                                ...           next (2 years ago)

81 Versions

  • 0.1.8                                ...           2 years ago
  • 0.1.8-alpha.0                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.7-alpha.1                                ...           2 years ago
  • 0.1.7-alpha.0                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.6-alpha.1                                ...           2 years ago
  • 0.1.6-alpha.0                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.5-alpha.4                                ...           2 years ago
  • 0.1.5-alpha.3                                ...           2 years ago
  • 0.1.5-alpha.2                                ...           2 years ago
  • 0.1.5-alpha.1                                ...           2 years ago
  • 0.1.5-alpha.0                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.4-alpha.2                                ...           2 years ago
  • 0.1.4-alpha.1                                ...           2 years ago
  • 0.1.4-alpha.0                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.3-alpha.3                                ...           2 years ago
  • 0.1.3-alpha.2                                ...           2 years ago
  • 0.1.3-alpha.1                                ...           2 years ago
  • 0.1.3-alpha.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.2-alpha.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.1-alpha.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.1.0-alpha.2                                ...           2 years ago
  • 0.1.0-alpha.1                                ...           2 years ago
  • 0.1.0-alpha.0                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.20-alpha.0                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.19-alpha.0                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.18-alpha.0                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.17-alpha.0                                ...           2 years ago
  • 0.0.16-alpha.0                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.15-alpha.0                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.14-alpha.0                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.12-alpha.1                                ...           2 years ago
  • 0.0.12-alpha.0                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.11-alpha.7                                ...           2 years ago
  • 0.0.11-alpha.6                                ...           2 years ago
  • 0.0.11-alpha.5                                ...           2 years ago
  • 0.0.11-alpha.4                                ...           2 years ago
  • 0.0.11-alpha.3                                ...           2 years ago
  • 0.0.11-alpha.2                                ...           2 years ago
  • 0.0.11-alpha.1                                ...           2 years ago
  • 0.0.11-alpha.0                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.10-alpha.7                                ...           2 years ago
  • 0.0.10-alpha.6                                ...           2 years ago
  • 0.0.10-alpha.5                                ...           2 years ago
  • 0.0.10-alpha.4                                ...           2 years ago
  • 0.0.10-alpha.3                                ...           2 years ago
  • 0.0.10-alpha.2                                ...           2 years ago
  • 0.0.10-alpha.1                                ...           2 years ago
  • 0.0.10-alpha.0                                ...           2 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8-alpha.6                                ...           3 years ago
  • 0.0.8-alpha.5                                ...           3 years ago
  • 0.0.8-alpha.4                                ...           3 years ago
  • 0.0.8-alpha.3                                ...           3 years ago
  • 0.0.8-alpha.2                                ...           3 years ago
  • 0.0.8-alpha.1                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 81
Dependencies (11)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |