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