Testing Made Easy
Micah Wood
@wpscholar
http://wpscholar.com/wctpa2015/
Why Test?
Long-Term Savings
Improve Reliability
Increase Coverage
Do The Impossible
Combat Technical Debt
Team Morale
Functional
Unit
Acceptance
Acceptance Testing
Scenario Based
Easiest to Write
Hardest to Debug
Slowest
Codeception
User Story
User Story
As a <who>
I want to <what>
So that <why>
User Story
As an Account Holder
I want to withdraw cash from an ATM
So that I can get money when the bank is closed
Acceptance Criteria
Acceptance Criteria
Given <condition>
When <action>
Then <result>
Acceptance Criteria
Given a user has an account
When they login
Then they should see a “Welcome <name>!” message
Functional Testing
Feature Based
Harder to Write
Easier to Debug
Faster
Unit Testing
Function Based
“Testing code isn’t hard. Writing testable code is.”
Hardest to Write
Easiest to Debug
Fastest
Questions?
Micah Wood
@wpscholar
http://wpscholar.com/wctpa2015/

Testing Made Easy