Opinions differ on test driven development, and some very smart developers are debating TDD and test-first vs system tests at a very high level. However, down in the trenches when building and supporting complex eCommerce websites built around Magento we live in a very different world with a number of constraints about what we can, can’t and absolutely must test. Magento itself, clients and budgets put constraints on what we are able to test, but testing is a critical part of keeping a site stable. I will briefly discuss the options available for testing Magento sites and how you could be testing your work with Magento.
33. unit testing
great for extensions
github.com/EcomDev/EcomDev_PHPUnit
@IvanChepurnyi
34. it’s not that you can’t test magento - you
can’t unit test magento, but there’s more to
testing than just unit tests
#MM14NY
35. 100% of developers surveyed that are testing
magento are using functional tests
#MM14NY
36. functional testing
focuses on the entire site as a system
doesn’t care what function is being called
tests that the site works the way client wants
37.
38. with full test coverage, functional tests
confirm that your magento site still works
as you add new features
#MM14NY
39. one more thing…
only 50% of developers surveyed are
conducting performance testing
!
performance testing is a must
40. performance testing
not just for sysadmins
not just for front-end developers
bad performance = bad sales
41. performance testing
backend developers don’t always remember
that extensions, integrations and new
features can slow the site down
42. when testing your magento projects, include
performance testing - poor performance is a
bug
#MM14NY
43. slow code should be optimized or removed
just like any other bug would be
#MM14NY
64. let’s keep talking
what did I get wrong?
TDD vs BDD?
BeHat?
@joshuaswarren / joshuawarren.com
65. behat, bdd vs tdd, unit testing in magento 1 -
tweet at @Joshuaswarren with what you
disagree with
#MM14NY
66. but wait, there’s more!
in-depth talk at phpworld
november, washington dc
world.phparch.com
67. spread the word
educate our peers, managers and clients
!
summer 2015 - automated testing is the norm
68. spread the word
Creatuity will be open sourcing our testing
tools and test cases
!
foundation for fast, flexible, reusable set of
functional and performance tests
69. coming soon to github - @joshuaswarren and
@creatuity are releasing a foundation for
performance and functional testing of
magento
#MM14NY