Behavior Driven Development vs Unit Testing

Опубликовано: 05 Ноябрь 2024
на канале: Continuous Delivery
23,706
831

TDD vs BDD? BDD vs Unit Tests? When should you write a BDD specification and when a Unit Test? Behaviour Driven Development is an effective way to capture a users intent: Test Driven Development is great to check that your code is good, but what if they test the same things? How do you optimise your testing?

In this episode Dave Farley describes his preferred testing strategy while meeting a challenge set by his friend Gojko Adzic on the Specflow website here: https://bit.ly/3n0dCe7

In this challenge Gojko poses the question when should you write Unit tests and when BDD tests? For Continuous Delivery the real answer is “All the *&^%$£ Time”. If we want to take a software engineering approach to solving problems we need to work experimentally and verify our results - through automated tests.

You can read more about Gojko’s regular #GivenWhenThenWithStyle Challenges here: https://bit.ly/2VSwXls

--------------------------------------------------------------------------------------

🎓 CD TRAINING COURSES 🎓
If you want to learn Continuous Delivery and DevOps skills, check out Dave Farley's courses
➡️ https://bit.ly/DFTraining

📚 BOOKS:

📖 Dave’s NEW BOOK "Modern Software Engineering" is now available on
Amazon ➡️ https://amzn.to/3DwdwT3
In this book, Dave brings together his ideas and proven techniques to describe a durable, coherent and foundational approach to effective software development, for programmers, managers and technical leads, at all levels of experience.

📖 "Continuous Delivery Pipelines" by Dave Farley
paperback ➡️ https://amzn.to/3gIULlA
ebook version ➡️ https://leanpub.com/cd-pipelines

📖 The original award-winning "Continuous Delivery" book by Dave Farley and Jez Humble
➡️ https://amzn.to/2WxRYmx

-------------------------------------------------------------------------------------

📧 JOIN CD MAIL LIST 📧
Keep up to date with the latest discussions, free "How To..." guides, events and online courses.
AND get Dave Farley's FREE "How To..." guide on Acceptance Testing here
➡️ https://www.subscribepage.com/cd-atdd...

--------------------------------------------------------------------------------------

Dave Farley's Blog ➡️ https://bit.ly/DaveFWebBlog

Dave Farley on Twitter ➡️ https://bit.ly/DaveFTwitter

Dave Farley on LinkedIn ➡️ https://bit.ly/DaveF-LI

--------------------------------------------------------------------------------------
SUGGESTED READING:

Specification By Example, by Gojko Adzic ➡️ https://amzn.to/2TlfYaH

Fifty Quick Ideas to Improve Your User Stories - Gojko Adzic ➡️ https://amzn.to/3jXM481

Impact Mapping: Making a big impact with software products and projects, Gojko Adzic ➡️ https://amzn.to/3gs3PL8

Humans vs Computers, Gojko Adzic ➡️ https://amzn.to/3oBvSLc

Running Serverless: Introduction to AWS Lambda and the Serverless Application Model, Gojko Adzic ➡️ https://amzn.to/2VYrBoB