Testing Made Easy

Post on 13-Jan-2017

687 views 0 download

Transcript of Testing Made Easy

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 TestingScenario Based

Easiest to Write

Hardest to Debug

Slowest

Codeception

User Story

User StoryAs a <who> I want to <what> So that <why>

User StoryAs 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 CriteriaGiven <condition> When <action> Then <result>

Acceptance CriteriaGiven a user has an account When they login Then they should see a “Welcome <name>!” message

Functional TestingFeature Based

Harder to Write

Easier to Debug

Faster

Unit TestingFunction 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/