TDD and BDD: The Ultimate Answer to Life, the Universe, and (Testing) Everything

Writing Your Tests First

  • When you’re done, you’re submitting both features and tests with the same work order — no need to procrastinate, testing is already done !
  • Since you’re deliberately thinking about testing early on, you will (hopefully) come up with more and better test scenarios.
  • As this practice takes hold, you’re encouraging a test and quality oriented team culture.

The Business Philosopher

Feature: Donuts
Scenario: Glazed donuts
Given I make a fresh run of donuts
When I add glazing
And I serve to customers
Then customers are ecstatic
Scenario: Whole Wheat Vegemite donuts
Given I make a run of whole wheat sugar free donuts
When I add vegemite
And I serve to customers
Then customers burn down my bakery

What is my framework if it’s not BDD or TDD ?

What’s the difference ? Why is there a difference ? Can you do both ?

Wrapping up: Tech stacks come and go, but Fundamentals rarely change

--

--

--

A software dev in test thinking against the grain. “To go faster, simplify, then add lightness.” ~Colin Chapman #cleancode #minaswan #innovate

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

anik/dataset — A PHP package to export DB tables data to CSV, import CSV data to DB tables.

How to speed up Ruby On Rails Software Development Projects?

ruby on rails software development

Occupancy App — An open source, globally available space counter

Dictionaries In Python

My experience at Microverse

Becoming the very best version of yourself.

Decorator Design Pattern

What is Big Data ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Add Lightness | Better Testing, Better Software

Add Lightness | Better Testing, Better Software

A software dev in test thinking against the grain. “To go faster, simplify, then add lightness.” ~Colin Chapman #cleancode #minaswan #innovate

More from Medium

Duck Typing and Inheritance (case study: Medical Center)

How Does a Daily Standup Last Forever?

Tips for Effective Code Review

Which Is Better for Your Business: Software Developer or Software Engineer?

Which Is Better for Your Business: Software Developer or Software Engineer?