eddiejaoude / codeception-zf2-codecoverage
Codeception ZF2 Code Coverage Module
Installs: 9 461
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
- codeception/c3: 2.*
- codeception/codeception: 2.*
- zendframework/zend-di: 2.*
- zendframework/zend-eventmanager: 2.*
- zendframework/zend-mvc: 2.*
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-10-22 03:04:04 UTC
README
Reference http://codeception.com/docs/11-Codecoverage
Installation
- Composer
"require-dev": { "eddiejaoude/codeception-zf2-codecoverage": "*" }
- Update Dependencies
php composer.phar update
- Added
CodeceptionZf2CodeCoverage
ZF2 Module toconfig/application.config.php
'modules' => array( 'Application', 'CodeceptionZf2CodeCoverage', ),
- Run Code Coverage
vendor/bin/codecept run --coverage --coverage-xml
Example Output
Time: 5.42 seconds, Memory: 29.75Mb
OK (12 tests, 36 assertions)
Code Coverage Report:
2014-10-04 09:22:55
Summary:
Classes: 50.00% (4/8)
Methods: 73.68% (14/19)
Lines: 55.68% (98/176)
\Application\Factory::ElasticSearchClientFactory
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 3/ 3)
\Application\Factory::ElasticSearchServiceFactory
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 2/ 2)
\Application\Form::SearchForm
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 29/ 29)
\Application\Model\Entity::Search
Methods: 80.00% ( 8/10) Lines: 93.62% ( 44/ 47)
\Application\Service::ElasticSearch
Methods: 100.00% ( 3/ 3) Lines: 100.00% ( 13/ 13)
XML report generated in coverage.xml
Text report generated in coverage.txt