Laravel 扩展开发,集成 Scrutinizer CI
xshaitt
➜  hasher git:(master) ✗ phpunit --coverage-clover=package-coverage-file
PHPUnit 6.1.3 by Sebastian Bergmann and contributors.

Error:         No code coverage driver is available

...                                                                 3 / 3 (100%)

Time: 82 ms, Memory: 8.00MB

OK (3 tests, 3 assertions)

没有安装xdebug就不会生成文件,需要安装后才可以
http://stackoverflow.com/questions/35811503/laravel-5-phpunit-and-no-code-coverage-driver-available

配置也有问题,最新配置

tools:
    php_mess_detector: true
    php_code_sniffer: true
    sensiolabs_security_checker: true
    php_pdepend: true
    php_loc:
        enabled: true
        excluded_dirs: [vendor, tests]
filter:
    excluded_paths:
        - 'tests/*'
build:
    tests:
        override:
            -
                command: vendor/bin/phpunit --coverage-clover=package-coverage-file
                coverage:
                    file: package-coverage-file
                    format: clover
JellyBool 微信公众号

不定期送书,送键盘,送订阅优惠