Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 9f58207

Browse files
authored
Coverage (#62)
1 parent a20efc7 commit 9f58207

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/symfony.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ jobs:
3737
${{ runner.os }}-php-${{ matrix.php-versions }}-
3838
- name: Install Dependencies
3939
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
40-
#- name: Create Database
41-
# run: |
42-
# mkdir -p data
43-
# touch data/database.sqlite
44-
#- name: Execute tests (Unit and Feature tests) via PHPUnit
45-
# env:
46-
# DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite
47-
# run: vendor/bin/phpunit
40+
- name: Create Database
41+
run: |
42+
mkdir -p data
43+
touch data/database.sqlite
44+
- name: Execute tests (Unit and Feature tests) via PHPUnit
45+
env:
46+
DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite
47+
run: vendor/bin/phpunit --coverage-clover coverage.xml
48+
- name: Upload to codecov
49+
uses: codecov/codecov-action@v2

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Docker build](https://github.com/artandor/multistream-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/artandor/multistream-tools/actions/workflows/ci.yml)
55
[![Translation status](https://hosted.weblate.org/widgets/multistream-tools/-/glossary/svg-badge.svg)](https://hosted.weblate.org/engage/multistream-tools/)
66
[![Wallaby.js](https://img.shields.io/badge/wallaby.js-powered-blue.svg?style=flat&logo=github)](https://wallabyjs.com/oss/)
7+
[![codecov](https://codecov.io/gh/artandor/multistream-tools/branch/main/graph/badge.svg?token=VJTVKRZ3DM)](https://codecov.io/gh/artandor/multistream-tools)
78

89
## Description
910

@@ -53,4 +54,4 @@ symfony serve -d
5354

5455
This repository contributors are welcome to use
5556
[Wallaby.js OSS License](https://wallabyjs.com/oss/) to get test results immediately as you type, and see the results in
56-
your editor right next to your code.
57+
your editor right next to your code.

phpunit.xml.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
</testsuite>
2424
</testsuites>
2525

26-
<coverage processUncoveredFiles="true">
26+
<coverage cacheDirectory=".phpunit.cache/code-coverage" processUncoveredFiles="true">
2727
<include>
2828
<directory suffix=".php">src</directory>
2929
</include>
30+
<report>
31+
<clover outputFile="clover.xml" />
32+
</report>
3033
</coverage>
3134

3235
<listeners>

0 commit comments

Comments
 (0)