phpunit-mink
phpunit-mink copied to clipboard
Improve "Remote Code Coverage" code
- find a reason why
PHPUNITandSELENIUMwords are being used inprepend.phpandappend.php - replace
append.phpwith a function registered viaregister_shutdown_function(as in Codeception) - convert append.php/prepend.php/phpunit_coverage.php into regular namespaced class, that can be tested
- here is nice example http://tech.vg.no/2014/01/21/generating-code-coverage-of-behat-tests/
Also the new RemoteCoverage statement should be moved to DIC.
@aik099 the files have been converted to a class using register_shutdown_function 11 months ago. Is there anything left or can it be closed ?
That's what create 20% loss of code coverage. Code is written theoretically, but not 100% tested.