Skip to content

newswim/cuc_gherk_boil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Testing overhead of enforcing test convention

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published