10. I’ll talk about.
✓What test should I write first?
✓ Write model unit test.
✓I began model test,but it’s difficult to setup data!!
✓ Use multi strategies for multi
types of data.
✓It seems good but less DRY. Is there any idea?
✓ Share your testing context.
16. aigi
byK rice
Ru l p
cia off
spe %
40
Use Cucumber
(or other end-to-end testing)
to cover controller,
views and more.
http://tatsu-zine.com/books/cuke
42. ✓ each run per test.
✓ same speed with real data persistence.
✓ edit each of them
to maintain.
43. flexibility maintain-
speed
in test ability good for
Master
fixture best wrong wrong
data
fixture Resource
wrong good best
replacements data
good
for each Event
before() good best wrong
for all
data
44. events students
Resource
courses lessons registrations
Event
rooms periods
Master
45.
46. on
ti
lu
Use multi
So
strategies for
multi types of
data.
47.
48. ✓ fixture
✓ fixture replacement
✓ block
Use them all which
suitable for the data.
49. m
le
It seems good
ob
Pr
but less DRY.
Is there any
idea?
69. I’ve talked about.
✓What test should I write first?
✓ Write model unit test.
✓I began model test,but it’s difficult to setup data!!
✓ Use multi strategies for multi
types of data.
✓It seems good but less DRY. Is there any idea?
✓ Share your testing context.
70. ✓ fixture
✓ fixture replacement
✓ block
Use them all which
suitable for the data.
71. ✓ naming each w/
✓ naming them w/
Express your intention
clearly and reduce
tiredness to add new test.