Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Magento Integration Tests

9,738 views

Published on

Introduction to types and goals of automated tests, their integration and application within Magento. We closely examine the development of various integration tests in the framework and configuration they reside. We will look at several example of test cases development and provide guidelines for success.

Published in: Technology, Education
  • Be the first to comment

Magento Integration Tests

  1. 1. 1. Types of Automated Tests2. Integration Tests3. Integration Testing Framework in Magento4. Developing Integration Tests in Magento5. Public Availability of Magento Integration Tests
  2. 2. 1. Types of Automated Tests2. Integration Tests3. Integration Testing Framework in Magento4. Developing Integration Tests in Magento5. Public Availability of Magento Integration Tests
  3. 3. 1. Types of Automated Tests2. Integration Tests3. Integration Testing Framework in Magento4. Developing Integration Tests in Magento5. Public Availability of Magento Integration Tests
  4. 4. phpunit.xml etc/local-mysql.xmlphpunit.xml.dist etc/local-mysql.xml.dist
  5. 5. 1. Types of Automated Tests2. Integration Tests3. Integration Testing Framework in Magento4. Developing Integration Tests in Magento5. Public Availability of Magento Integration Tests
  6. 6. Class PurposeMagento_Test_Listener Aggregator of custom listeners, that serves as integration point with PHPUnitMagento_Test_Listener_Annotation_Isolation @magentoAppIsolation – control of application object state and registryMagento_Test_Listener_Annotation_Config @magentoConfigFixture – emulation of Magento global or store view configurationMagento_Test_Listener_Annotation_Fixture @magentoDataFixture – convenient data fixtures preparation
  7. 7. Class PurposeMagento_Test_TestCase_ControllerAbstract Base class for testing Magento controllers easierMagento_Test_Request, HTTP-request and response stubs, used for testingMagento_Test_Response controllersMagento_Test_Entity Helper for testing Magento entities CRUD (descendants of Mage_Core_Model_Abstract)Magento_Test_TestSuite_ModuleGroups Test suite that excludes test groups for disabled modules (use in conjunction with bootstrap config)Magento_Test_TestCase_IntegrityAbstract Base class with helper methods for integrity tests
  8. 8. 1. Types of Automated Tests2. Integration Tests3. Integration Testing Framework in Magento4. Developing Integration Tests in Magento5. Public Availability of Magento Integration Tests
  9. 9. Stay tuned in twitter for new Git repository.

×