In my phpunit.xml file I have a list of log types.
<logging>
<log type="coverage-php" target="results/clover-unit.cov"/>
<log type="junit" target="results/phpunit/phpunit.xml" />
<log type="coverage-clover" target="results/clover.xml"/>
<log type="coverage-html" target="./results" lowUpperBound="35" highLowerBound="70"/>
</logging>
So when I run "vendor/bin/phpunit"
, it creates a folder names results and inside it contains list of folders and files with visual description.
So far I am trying to implement it to bitbucket pipeline.
In the yml file, I have following lines.
- vendor/bin/phpunit --coverage-text --colors=never --coverage-html="./reports"
artifacts:
- reports
But I could not generate these bunch of folders. Can anybody help me?
Thank You.
Hi @Sanin . Try to use glob pattern when defining your artifacts:
- vendor/bin/phpunit --coverage-text --colors=never --coverage-html="./reports"
artifacts:
- reports/**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.