Given - When - Then
Definition
The Given-When-Then formula is a template intended to guide the writing of acceptance tests for a User Story:
- (Given) some context
- (When) some action is carried out
- (Then) a particular set of observable consequences should obtain
An example:
- Given my bank account is in credit, and I made no withdrawals recently,
- When I attempt to withdraw an amount less than my card's limit,
- Then the withdrawal should complete without errors or warnings
https://github.com/cucumber/cucumber-js
http://stackoverflow.com/questions/14638254/gherkin-to-not-for-javascript
http://blog.josephwilk.net/ruby/testing-javascript-with-cucumber-in-javascript.html
http://cucumber.github.io/cucumber-eclipse/
https://thomassundberg.wordpress.com/2014/05/29/cucumber-jvm-hello-world/
http://behat.readthedocs.org/en/v2.5/guides/1.gherkin.html
http://custardbelly.com/blog/blog-posts/2014/01/08/bdd-in-js-cucumberjs/
https://cukes.info/
No comments:
Post a Comment