Skip to content

Commit

Permalink
enable coverage report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVonJocoon committed Nov 17, 2021
1 parent 47295dd commit 8cf3cf7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions buildspec.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ phases:
- docker-compose -f docker-compose.unittest.yml stop

reports:
coverage:
files:
- .phpunit/coverage.clover.xml
file-format: CloverXml

test-report:
files:
- .phpunit/report.junit.xml
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
unittest_core_db_mysql_database: database
unittest_core_cache_memcached_host: unittest-memcached
unittest_core_cache_memcached_port: 11211
command: vendor/bin/phpunit --no-coverage
command: vendor/bin/phpunit
working_dir: /usr/var/workspace
depends_on:
- unittest-mysql
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</include>
<report>
<html outputDirectory=".phpunit/coverage-html" />
<clover outputFile=".phpunit/coverage.clover.xml" />
</report>
</coverage>
<testsuites>
Expand Down

0 comments on commit 8cf3cf7

Please sign in to comment.