Module tests structure

Default Testing Library behavior is to run all tests which are defined in one of the following test classes and are based on PHPUnit.

  • AllTestsUnit

  • AllTestsIntegration

  • AllTestsSelenium

Tests are run by calling


to run unit and integration tests and


to run selenium tests.

These classes define default directories to store tests for a module:

  • Unit

  • Integration

  • Acceptance

Possible structure of module tests:


Possible example in PayPal GitHub repository.

Testing library and it’s documentation in GitHub.

We also have the possiblity to run shop acceptance tests based on codeception which is the recomended way to write acceptance tests for OXID eShop and modules. This will be explained in detail in the following sections.