diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9ac6cc6..143d51c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,3 +22,10 @@ jobs:
XDEBUG_MODE: coverage
with:
php_extensions: xdebug
+ coverage_clover: clover.xml
+ - name: Generate test coverage badge
+ uses: timkrase/phpunit-coverage-badge@v1.2.0
+ with:
+ coverage_badge_path: 'badge-coverage.svg'
+ push_badge: true
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/README.md b/README.md
index 3a9da2d..b02aa93 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
# Playground
+![Test Coverage](https://raw.githubusercontent.com/gammamatrix/playground/develop/badge-coverage.svg)
![Playground CI Workflow](https://github.com/gammamatrix/playground/actions/workflows/ci.yml/badge.svg?)
This is the base package for Playground.
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index e448aa7..535c145 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -27,11 +27,11 @@
tests/Unit
-
-
-
+
+ tests/Feature
+
-
-
+ -->