https://github.com/newswim/cuc_gherk_boil
Testing overhead of enforcing test convention
https://github.com/newswim/cuc_gherk_boil
bdd cucumber gherkin stories user
Last synced: about 1 month ago
JSON representation
Testing overhead of enforcing test convention
- Host: GitHub
- URL: https://github.com/newswim/cuc_gherk_boil
- Owner: newswim
- License: mit
- Created: 2017-11-17T17:39:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T22:39:12.000Z (over 7 years ago)
- Last Synced: 2025-04-01T17:03:49.687Z (about 1 month ago)
- Topics: bdd, cucumber, gherkin, stories, user
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BDD/TDD PoC (with extra pickle juice)
Imagine a future with me...
Your project is fully defined, requests from a client are clear..
.. these requirements need to be transcribed into a first-person perspective --- the person using your app.
... you break out behaviors into descriptive chunks
... you use **Gherkin** syntax, because _convention over configuration_ is ***GOOD***
... you use **Cucumber** to turn these behaviors into *real tests* that run in a headless browser
... tests are broken! Write some code, make them pass!
... Tests all pass! You're done!
... Client wants to change a feature...
... ...
... you update the tests. They break!
... you change the code --- they pass!
... Client is happy, you're done!### Suggested Stack
- gherkin (not a library, but a language)
- CucumberJS (because you're writing JavaScript anyway...)
- A driver... dunno yet! Probably WebDriver or Nightmare.### Additional
- https://github.com/stewartml/gherkin-jest
- [writing features - gherkin language] (behat)
- [Speak Gherkin And Learn How To Collect Requirements For Your Project]| Library | Pro | Con |
| :------------------- | :------------------------------------------ | :------------------ |
| Nightwatch-Cucumber | fairly simple behavior api (via nightwatch) | writing steps |
| Cucumber-Mink | eliminates need to write 40 common steps | lacks driver |
| react-cucumber | integrates with Jest | writing steps |
| iensu/mocha-cakes-2 | | |[writing features - gherkin language]: 'http://docs.behat.org/en/v2.5/guides/1.gherkin.html'
[Speak Gherkin And Learn How To Collect Requirements For Your Project]: 'https://medium.com/@NeotericEU/speak-gherkin-and-learn-how-to-collect-requirements-for-your-project-dad171da8fb'