文件名称:live-code-coverage:在实时服务器上生成代码覆盖率报告
文件大小:10KB
文件格式:ZIP
更新时间:2024-05-26 15:40:11
PHP
实时代码覆盖 该库应该可以帮助您在实时服务器上生成代码覆盖率报告(当然不必一定是生产服务器)。 使用以下命令安装该库: composer require matthiasnoback/live-code-coverage 收集代码覆盖率数据 在您的前端控制器(例如index.php )中,添加以下内容: <?php use LiveCodeCoverage \ LiveCodeCoverage ; $ shutDownCodeCoverage = LiveCodeCoverage :: bootstrap ( ( bool ) getenv ( 'CODE_COVERAGE_ENABLED' ), __DIR__ . '/../var/coverage' , __DIR__ . '/../phpunit.xml.dist' ); // Run your we
【文件预览】:
live-code-coverage-master
----composer.json(500B)
----.travis.yml(165B)
----test()
--------functional()
----LICENSE(1KB)
----src()
--------LiveCodeCoverage()
----.gitignore(62B)
----phpunit.xml.dist(575B)
----README.md(3KB)