Testing¶
Frontend-Tests¶
We use the behat framework for the frontend tests. This is how the frontend tests are installed from the command line:
cd /var/www/html/web/typo3conf/ext/higher_education_package/Tests/Behat/
composer install
This is how the frontend tests are executed from the command line for the different browser:
cd /var/www/html/web/typo3conf/ext/higher_education_package/Tests/Behat/
bin/behat --tags '~@solr' --stop-on-failure -n -p firefox
bin/behat --tags '~@solr' --stop-on-failure -n -p chrome
Unit-Tests¶
We use the nimut testing framework (based on phpunit) for the unit tests. The aim of the testing framework is to provide a good way to write and run unit test specially for TYPO3. This is how the unit tests are executed from the command line:
cd /var/www/html
vendor/bin/phpunit -c vendor/nimut/testing-framework/res/Configuration/UnitTests.xml web/typo3conf/ext/higher_education_package/Tests/Unit/