In our team we’re trying to implements unit tests for modules which we are creating. I have done some research about how it works in Oxid and I ran some tests using testing_library (https://github.com/OXID-eSales/testing_library).
Tests are running but execution time is really long… We use only one module to test at the same time and we have disabled shops tests. Here is our test_config.yml:
# This file is auto-generated during the composer install
In our case when I call
runtests I must wait 20 seconds when the tests finish. Do you have the same performance problem or you are using other Unit Testing Workflow?
Now we try to use PHPUnit directly from oxid-eshop vendor for each module but in this case we can’t use testing library (I mean I can’t use extended class BaseTestCase from OxidEsales\TestingLibrary namespace) - I can use directly PHPUnit_Framework_TestCase class only without Oxid Testing Library extensions…
My main question is What does your workflow look like with creating a module and unit testing?
We are trying to find the best solution for us.