My presentation about Magento Testing, 4th of December 2013, London Magento User Group, December Meetup.
You can test any aspect of Magento. Having a continuous integration process in place and test coverage will give your development team confidence to release new functionality even on a Friday afternoon.
Florinel is currently co-founder and Chief Service Officer at Elastera (http://www.elastera.com), a cloud-based Platform as a Service for Magento e-commerce sites.
4. Unit Testing
• Available tools:
– plain phpunit
– MTAF
– EcomDev_PHPUnit
– TechDivision_MagentoUnitTesting
– Mage-Test
5. Plain phpunit
• Test API calls
• Test libraries
• Other basic tests
• Any other aspect of Magento that is not
dependent on things like session
• Requires lots of effort in “setUp()”
6. EcomDev_PHPUnit
• Integrated with Magento
• Supports Fixtures
• You can test pretty much any aspect of
Magento (Controllers, Models, Layout,
Config, etc)
15. Functional Testing with CasperJS
“CasperJS is an open source navigation scripting & testing utility”
• Writtern for PhantomJS or SlimerJS
• Good for “writing functional test
suites, saving results as JUnit XML”
• Other cool features: take screenshots, test
remote DOM, scrape web documents
24. PhantomCSS Tips
• Avoid dynamic data (homepage
menu, banners)
• Use version control for the base pictures (and
make sure you update them when they
should change)
• Use the same OS/browser/viewport
25. Magento Performance - XHProf
“XHProf is a function-level hierarchical profiler for PHP
and has a simple HTML based user interface.”
Magento modules: Demac_Xhprof and Liip_Xhprof