Page 1
Phát triển hướng hành vi-BDD
Phạm Anh Đới
[email protected]
Page 2
Mục tiêu
• Sự hình thành BDD
• Ưu điểm của BDD
• Demo BDD với Cucumber
• Thảo luận
Agile Vietnam
Page 3
Phát triển hướng kiểm thử - TDD
Make test
failed
Pass the test
Refactor
Agile Vietnam
Page 4
Phát triển hướng tính năng –ATDD
User Story
Acceptance Test Failed
TDD
Deploy
Agile Vietnam
Page 5
Phát triển hướng hành vi - BDD
Customers’ language
Agile Vietnam
Page 6
Phát triển hướng hành vi - BDD
Agile Vietnam
Page 7
Phát triển hướng hành vi - BDD
Your System
TechnicalSteps Definitions Support Code Automation Library
BusinessFeatures Scenarios Steps
Your Project
Agile Vietnam
Page 8
Demo
Agile Vietnam
Page 9
Đặc tả bằng Ví Dụ - Specification by Example
Agile Vietnam
Page 10
Ưu điểm
• Giúp xác định đúng yêu cầu
• Cung cấp “đủ” tài liệu
• Cải thiện chất lượng phần mềm
• Tạo tài liệu sống của hệ thống
Agile Vietnam
Page 11
Question & Ideas
Agile Vietnam
Page 12
Tài liệu tham chiếu
• The Cucumber Book: Behaviour-Driven Development for Testers and Developers by: Matt Wynne and Aslak Hellesøyer book
• Specification By Example: How successful teams deliver the right software by Gojko Adzic
Agile Vietnam