[{"data":1,"prerenderedAt":129},["ShallowReactive",2],{"term-b\u002Fbdd":3,"related-b\u002Fbdd":115},{"id":4,"title":5,"acronym":5,"body":6,"category":94,"description":95,"difficulty":96,"extension":97,"letter":98,"meta":99,"navigation":100,"path":101,"related":102,"seo":108,"sitemap":109,"stem":112,"subcategory":113,"__hash__":114},"terms\u002Fterms\u002Fb\u002Fbdd.md","BDD",{"type":7,"value":8,"toc":88},"minimark",[9,14,18,22,25,29,77,81,84],[10,11,13],"h2",{"id":12},"eli5-the-vibe-check","ELI5 — The Vibe Check",[15,16,17],"p",{},"BDD is like writing your tests in plain English so your non-coder boss can also understand them. Instead of code, you write 'Given the user is logged in, When they click logout, Then they should see the login page'. Everyone gets it!",[10,19,21],{"id":20},"real-talk","Real Talk",[15,23,24],{},"Behavior-Driven Development extends TDD by writing test specifications in a human-readable format using Given\u002FWhen\u002FThen syntax. Tests describe system behavior from the user's perspective and serve as both documentation and executable specifications.",[10,26,28],{"id":27},"show-me-the-code","Show Me The Code",[30,31,36],"pre",{"className":32,"code":33,"language":34,"meta":35,"style":35},"language-gherkin shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","Feature: User Logout\n  Scenario: Logged in user logs out\n    Given the user is logged in\n    When they click the logout button\n    Then they should be redirected to \u002Flogin\n    And they should see 'You have been logged out'\n","gherkin","",[37,38,39,47,53,59,65,71],"code",{"__ignoreMap":35},[40,41,44],"span",{"class":42,"line":43},"line",1,[40,45,46],{},"Feature: User Logout\n",[40,48,50],{"class":42,"line":49},2,[40,51,52],{},"  Scenario: Logged in user logs out\n",[40,54,56],{"class":42,"line":55},3,[40,57,58],{},"    Given the user is logged in\n",[40,60,62],{"class":42,"line":61},4,[40,63,64],{},"    When they click the logout button\n",[40,66,68],{"class":42,"line":67},5,[40,69,70],{},"    Then they should be redirected to \u002Flogin\n",[40,72,74],{"class":42,"line":73},6,[40,75,76],{},"    And they should see 'You have been logged out'\n",[10,78,80],{"id":79},"when-youll-hear-this","When You'll Hear This",[15,82,83],{},"\"We write BDD specs with the product team so everyone agrees on behavior.\" \u002F \"BDD bridges the gap between devs and non-technical stakeholders.\"",[85,86,87],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":35,"searchDepth":49,"depth":49,"links":89},[90,91,92,93],{"id":12,"depth":49,"text":13},{"id":20,"depth":49,"text":21},{"id":27,"depth":49,"text":28},{"id":79,"depth":49,"text":80},"testing","BDD is like writing your tests in plain English so your non-coder boss can also understand them.","intermediate","md","b",{},true,"\u002Fterms\u002Fb\u002Fbdd",[103,104,105,106,107],"Behavior-Driven Development","Given When Then","TDD","Test Case","Cucumber",{"title":5,"description":95},{"changefreq":110,"priority":111},"weekly",0.7,"terms\u002Fb\u002Fbdd",null,"f1i_7foHJupUcYYTN3IqMmVHngSjtczYqUdcpXcUNY0",[116,119,123,126],{"title":103,"path":117,"acronym":5,"category":94,"difficulty":96,"description":118},"\u002Fterms\u002Fb\u002Fbehavior-driven-development","Behavior-Driven Development is about describing HOW your app should behave before you build it — using language that makes sense to everybody, not just cod...",{"title":104,"path":120,"acronym":113,"category":94,"difficulty":121,"description":122},"\u002Fterms\u002Fg\u002Fgiven-when-then","beginner","Given When Then is AAA's cousin from the BDD world. Given = the setup situation. When = what the user\u002Fsystem does. Then = what should happen as a result.",{"title":105,"path":124,"acronym":105,"category":94,"difficulty":96,"description":125},"\u002Fterms\u002Ft\u002Ftdd","TDD means you write the test BEFORE you write the code.",{"title":106,"path":127,"acronym":113,"category":94,"difficulty":121,"description":128},"\u002Fterms\u002Ft\u002Ftest-case","A test case is one specific scenario you want to check. 'Does the login work with a correct password?' — that's a test case.",1776518259074]