同様の質問Laravel 5: PHPUnit and no code coverage driver availableの答えがありますが、xdebugがインストールされています。PHPUnit。エラー:コードカバレッジドライバが使用できません。 (xdebugがインストールされている)
(もし私が使用している。この問題:Windows7の、netbeans8.1、PHP7、wamp3)
にNetbeansの結果でコードカバレッジを表示:
、
とは、出力は以下の通りです:Error: No code coverage driver is available
"C:\wamp\www\treningPHPUnitSymfony2.8\bin\phpunit.bat" "--colors" "--log-junit" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-log.xml" "--coverage-clover" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-coverage.xml" "C:\Program Files\NetBeans 8.1\php\phpunit\NetBeansSuite.php" "--" "--run=C:\wamp\www\treningPHPUnitSymfony2.8\src\TreningBundle\Tests\Controller\RabarbarControllerTest.php" PHPUnit 5.3.4 by Sebastian Bergmann and contributors.
Error: No code coverage driver is available
.II 3/ 3 (100%)
Time: 1.13 seconds, Memory: 4.00MB
OK, but incomplete, skipped, or risky tests! Tests: 3, Assertions: 1, Incomplete: 2. Done.](url)
xdebugのconfに(C:\ WAMP \ binに\ apacheの\ apache2.4.17 \ビン\ php.iniの):
[xdebug]
zend_extension ="C:/wamp/bin/php/php7.0.1/zend_ext/php_xdebug-2.4.0rc3-7.0-vc14.dll"
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp/tmp"
xdebug.show_local_vars=0
(私は同じWindowsパーティションにNetBeansとプロジェクトディレクトリを持っている)
'php.exe -v'とは何ですか? xdebugは有効になっていますか? –
C:¥Windows¥System32> php.exe -v PHP 7.0.1(cli)(ビルド:12月16日20:13:36:30)(ZTS) 著作権(c)1997-2015 PHPグループ Zend Engine v3.0.0、Copyright(c)1998-2015 Zend Technologies –
メイン投稿の最後のprintscreenに示されているようなxdebugはリストにあります –