Acceptance testing with
Codeception
Deniz Zoeteman
Uncon DPC 2017
Github: gdscei
About me
PHP developer at SAA
Programming for 8 years
Non-profit stuff
Contributor on Codeception
Topics
What is Acceptance testing?
What is Codeception?
Acceptance tests with Codeception
Parallel testing
Common challenges
Questions
What is Acceptance testing?
Testing your application’s user experience
Test with a browser (Selenium, PhantomJS, etc)
Writing tests in a functional format
Happy path (opinionated)
What is Codeception?
Testing framework
Types of testing: unit, api, acceptance
Wide range of support
Drivers
Browsers
Frameworks
Acceptance tests with Codeception
Cept files
Acceptance tests with Codeception
Cest classes
Acceptance tests with Codeception
Feature files (Gherkin)
But that’s like… slow
Parallel testing
Robo project
http://robo.li/
Task runner
RoboFile with Codeception tasks
Trading resources for speed
Grouping tests
Demo!
Common challenges
Speed
Brittle and cumbersome with JavaScript
Bugs and quirks with browsers
Coverage
Data uniqueness
Questions?
Thank you!
https://joind.in/talk/77007

Acceptance testing with codeception

Editor's Notes

  • #2 Introduction + Name (go next slide)
  • #3 SAA 3.5years 8 years programming -> joke batch script green text (click) Contributor codeception -> joke about 2 commits
  • #4 Explain topics shortly
  • #6 drivers: phpbrowser, webdriver browsers: chrome, phantomjs frameworks: symfony, zend
  • #7 Cepts being deprecated?
  • #8 Cepts being deprecated?
  • #9 Cepts being deprecated?
  • #10 45 minutes tests @ SAA -> throw more resource at it joke
  • #12 robo made by codeception devs, also others
  • #14 bugs/quirks browsers: css (margins pixel values) / javascript (phantomjs -> promises) implementation. alerts on chrome(driver).
  • #16 Feedback link