Download the PHP package tzepart/test-separator without Composer
On this page you can find all versions of the php package tzepart/test-separator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tzepart/test-separator
More information about tzepart/test-separator
Files in tzepart/test-separator
Package test-separator
Short Description Project for separating of tests
License MIT
Homepage https://github.com/TzepART/test-separator.git
Informations about the package test-separator
Test Group Separator
Packagist - https://packagist.org/packages/tzepart/test-separator
Версия на русском
Description:
It is possible to divide the tests into groups based on:
- report.xml of Codeception library
- The size of the test methods (used if the first 2 do not work)
In addition, the separation depth has 3 levels:
- Separation of directories
- Separation of files (classes)
- Separation by separate methods Than smaller the division unit (method < class < directory) that more optimized the division result.
Installation
Configuration
Add configuration file config/test_separator.yml
, which contents:
Parameter separating-strategy can be one of these values:
- codeception-report
- method-size
If parameter use-default-separating-strategy: true than, if we can't use codeception-report strategy we'll try use default strategies (method-size or default-groups)
Parameter tests-directory - path to directory where is yours tests
Parameter result-path - path to directory where final groups files will be
Parameter level can be one of these values:
- directory
- class
- method
Manual running
Where "6" - groups count
For the convenience of debugging, you can overwrite some configuration parameters when running the command, namely:
- codeception-reports-directory
- result-path
- separating-strategy
Example:
Develop section
Run test
All versions of test-separator with dependencies
drupol/phpartition Version ^0.1.2
symfony/console Version ^4.4
ext-json Version *
ext-simplexml Version *
codeception/codeception Version ^4.0
symfony/finder Version ^4.4
psr/log Version ^1.1