Files
Tom Klingenberg 370cdcb0fb [TASK] move dev/tests to tests
common test path in Magerun 1 and many other PHP projects.

phpunit.xml has been renamed to phpunit.xml.dist which is the common
distribution form of it.

the .gitignore file has been updated to reflect these changes.

historical note: dev/tests was simmilar to Magento 2 structure.
2015-11-11 01:34:21 +01:00

34 lines
696 B
ReStructuredText

**************
Test Framework
**************
We deliver a test framework for n98-magerun2 commands.
=============
Configuration
=============
Set the environment variable `N98_MAGERUN2_TEST_MAGENTO_ROOT` with a path to a magento installation
which can be used to run tests.
i.e.
export N98_MAGERUN2_TEST_MAGENTO_ROOT=/home/myinstallation
=========
Run Tests
=========
You need PHPUnit to run the tests.
If you don't have PHPUnit installed on your system you can use the following command to install all test tools
at once.
..code-block:: sh
composer.phar --dev install
Run PHPUnit in n98-magerun2 root folder.
If you have installed with composer you can run::
vendor/bin/phpunit