DEV Community

Discussion on: Practicing YAGNI - Show me the code

leojpod profile image

You might be interested in checking out the Cucumber project (
It has implementation in many languages (I personally use cucumber-js) and it lets you test your app based on these user stories.

in short: you keep a folder where all your stories (cucumber call that features) are described in these terms (Given ... When ... And ... Then ...) then another folder keeps all the implementations of these steps (e.g. Given that user goes to /home) and it runs tests based on that. It's pretty neat to use.