16. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
(Development + Testing) Approach ?
Bottom-up (Inside-out) Top-down (Outside-in)
17. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
Cucumber & RSpec
Outside-in approach
Only write what is meaningful
Close interaction of PO and developer
18. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
BDD
ATDD TDD
BA/PO Developer
19. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
Cucumber example
20. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
Outside-in
Scenario View Controller
Step 1 Step 3 Step 4
Steps Model
Step 2 Step 5
Given Pre-requisite
… (masked data, mock, Stub)
…
When
… Action
(invoke method)
Then
…
…
Validate output
…
21. 2. Unit, functional and Acceptance testing - fun with Ruby on Rails
Tests with guard
31. Easy to understand and easy to
follow steps are fun
With checks on code and code
quality, developer can have
sound sleep
ATDD, TDD and
BDD, DDD, anyother DD :
just concepts
development and testing
together is fun!