DEV Community

Discussion on: Practicing YAGNI - Show me the code

Collapse
dserodio profile image
Daniel Serodio

I'm familiar with the "As a $ROLE, I want $FEATURE so that $BUSINESS_BENEFIT" user story template, but I'd never seen it combined with "Given ... And ... Then". Do you have any useful links about this use story template? Thanks.

Collapse
leojpod profile image
leojpod

You might be interested in checking out the Cucumber project (cucumber.io/).
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.

Collapse
dserodio profile image
Daniel Serodio

Nevermind, I found it myself :) "What's in a Story", by Dan North: dannorth.net/whats-in-a-story/

Collapse
gonedark profile image
Jason McCreary Author

Awesome. I didn't know the exact source either. Just always wrote them that way.