I do, and it has saved my ass several times. One small little change in your code somewhere could lead to a small, undetected change elsewhere that could break something. I test everything that I possibly can so I can be sure that everything is working like I want it.
Aug 18, 2015
7
Level 9
Do you test everything?
When you are writhing your testes, how deep do you go?
I'm about to start using behats e thinking abount how many scenarios I'll have.
If you think in a CRUD feature will we have ( I know this is not a cookbook)
C :
Submit without fill any field (with client validation) and check every single field was validated
Submit without fill any field (with server validation) and check every single field was validated
Test unique fields like email
Test masks, datepick, select2, etc.
Javascript html manipulation
Submit a valid form
R:
Check if "all" db lines are listed
Pagination ( first , previou , next and last page , number of lines per page )
Filtering and Ordering for every single filters and columns
U:
Show corect information for everything filed
+ repeat "C" testes
D:
Can't delete "undeliting" rows ( client side )
Can't delete "undeliting" rows ( server side )
Delete rows ( show confirmation message )
Of course it can be more complicatad than this, but we would have at least 20 scenarios.
My question is: Do you always do all "these" scenarios for every CRUD ?
Please or to participate in this conversation.