I created a little package and I want to get some qualifications for it.
So one of them is Scrutinizer
Coverage and Code Quality.
As in the tutorial I created a file and renamed it to scrutinizer.yml
and put the following into it:
build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
But after syncing in my Scrutinizer
profile I get this "coverage NaN%"
So what should I do?
I found it. it related to setting of PHPUnit. i create a file and renamed it to phpunit.xml and put following configuration code to it.
and after a ran phpunit for create local coverage.xml file; it given to me following error:
and i after a little search it found i have to insert following code into phpunit.xml
so final phpunit.xml file is