You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
8
9
+
## [Unreleased]
10
+
11
+
### Added
12
+
13
+
* (feat) CLI option for table width
14
+
* Thanks to [LeoVie, discussion #311](https://github.com/ericsizemore/phpunit-coverage-check/discussions/311) for the idea.
15
+
16
+
### Changed
17
+
18
+
* The `composer.json` script `psalm:ci` now uses the `psalm` script instead of the (now removed) `psalm:security`.
19
+
* Updated dev-dependencies, most notably requiring Psalm v7-beta.
20
+
* Updated `Command\CoverageCheckCommand` to use `__invoke()` instead of `configure()` and `execute()`. This was introduced in [Symfony 7.3](https://symfony.com/blog/new-in-symfony-7-3-invokable-commands-and-input-attributes).
21
+
* Note, it still extends `Symfony\Component\Console\Command\Command` for now.
22
+
* Updated `README.md` for some minor enhancements, and to add information for the new `--table-width` option.
23
+
24
+
### Removed
25
+
26
+
* The `composer.json` script `psalm:security` has been removed.
27
+
28
+
9
29
## [3.0.0] - 2024-12-16
10
30
11
31
This release is mainly a bump to a PHP 8.3 requirement with some minor refactoring.
Copy file name to clipboardExpand all lines: README.md
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@
14
14
15
15
[PHPUnit Coverage Check](http://github.com/ericsizemore/phpunit-coverage-check/) - Check the code coverage using the clover report of PHPUnit.
16
16
17
-
This library will read the clover xml report from PHPUnit and calculate the coverage score.
18
-
Based on the given threshold the application will exit OK if the coverage is higher than the threshold or exit with code 1 if the coverage is lower than the threshold.
17
+
This library will read the clover XML report from PHPUnit and calculate the coverage score.
18
+
Based on the given threshold, the application will exit OK if the coverage is higher than the threshold or exit with code 1 if the coverage is lower than the threshold.
19
19
20
20
This library can be used in multiple ways:
21
21
@@ -27,7 +27,7 @@ See [GitHub Action](#github-action), [Installation](#installation) and [Usage](#
27
27
28
28
> [!IMPORTANT]
29
29
> This project is not in any way an official ``PHPUnit`` project.
30
-
> Meaning, that it is not associated with, or endorsed by, the ``PHPUnit`` project or its author ``Sebastian Bergmann``.
30
+
> Meaning it is not associated with, or endorsed by, the ``PHPUnit`` project or its author ``Sebastian Bergmann``.
31
31
32
32
### GitHub Action
33
33
@@ -86,10 +86,10 @@ If not already using Phive, you can read more about it [here](https://phar.io/),
86
86
87
87
## Usage
88
88
89
-
There are 2 parameters that must be passed to return the code coverage.
89
+
There are two parameters that must be passed to return the code coverage.
90
90
91
-
1. The location of the clover xml file, that has been generated by PHPUnit.
92
-
2. The coverage threshold that is acceptable or 'passing'. Min = 1, Max = 100
91
+
1. The location of the clover XML file that PHPUnit has generated.
92
+
2. The coverage threshold that is acceptable or 'passing.' Min = 1, Max = 100.
93
93
94
94
Generate the `clover.xml` file by using PHPUnit:
95
95
@@ -105,7 +105,7 @@ You can also add the coverage report generation to your PHPUnit configuration fi
105
105
</report>
106
106
```
107
107
108
-
* For more information see the [PHPUnit Documentation](https://docs.phpunit.de/en/10.5/).
108
+
* For more information, see the [PHPUnit Documentation](https://docs.phpunit.de/en/10.5/).
109
109
* Information about the [configuration file](https://docs.phpunit.de/en/10.5/configuration.html) and [commandline options](https://docs.phpunit.de/en/10.5/textui.html#command-line-options).
The `--table-width` (or `-W`) option will only have an affect if used with the `--show-files` option. The only requirement for this particular option is that you must pass an integer
This library is a fork of/based upon [rregeer/phpunit-coverage-check](https://github.com/richardregeer/phpunit-coverage-check/) by [Richard Regeer](https://github.com/richardregeer).
214
226
215
-
Most of this library has been rewritten from the ground up, to replace and improve a majority of the original library. The overall idea, and key pieces of the calculation, are thanks to the original library. Many thanks and much appreciation to Richard Regeer for his wonderful work.
227
+
Most of this library has been rewritten from the ground up, to replace and improve the majority of the original library. The overall idea, and key pieces of the calculation, are thanks to the original library.
228
+
Many thanks and much appreciation to Richard Regeer for his wonderful work.
0 commit comments