Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
wickedOne committed Feb 11, 2024
1 parent 9f708c7 commit 0d6fb2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doc/Infection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ this script collects the paths defined in your CODEOWNERS file for given codeown
this script assumes the presence of the CODEOWNERS file in the root directory of you project.
though configurable in the `codeowner2commaseparatedlist.pl` file, for now no plans to make that configurable or accept it as input parameter.

> [!CAUTION]
> the `codeowner2commaseparatedlist.pl` script requires either an optimised or an authoritative classmap file so make sure to generate one of those in your configuration (see example below).
### example config

> gitlab-ci-yml
Expand Down
10 changes: 7 additions & 3 deletions doc/PHPUnit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## PHPUnit

`coverage2codeowner.pl` filters and re-calculates phpunit's coverage text output for a specific codeowner based on the paths defined in gitlab's CODEOWNER file.
`GPH::PHPUnit.pm` filters and re-calculates phpunit's coverage text output for a specific codeowner based on the paths defined in gitlab's CODEOWNER file.

on top of that a minimum coverage percentage can be defined (defaults to 0.1) which will cause your pipeline to fail if the line coverage % dives below that threshold.

Expand All @@ -21,8 +21,12 @@ the following environment variable is used by the coverage2codeowner script
this script assumes the presence of composer at the usual location and the CODEOWNERS file in the root directory of you project.
though both paths are configurable in the `coverage2codeowner.pl` file, for now no plans to make that configurable or accept them as input parameters.

**note:** the script _does not_ alter how your test suite runs in any way (so no run filters are applied), it just filters the output and re-calculates the summary.
this way the other coverage artifacts (junit & xml) can be used by for example infection (see below)
> [!CAUTION]
> the `GPH::Composer.pm` module requires either an optimised or an authoritative classmap file so make sure to generate one of those in your configuration (see example below).
> [!NOTE]
> the script _does not_ alter how your test suite runs in any way (so no run filters are applied), it just filters the output and re-calculates the summary.
this way the other coverage artifacts (junit & xml) can be used by for example infection (see [Infection](Infection.md)).

### example config

Expand Down

0 comments on commit 0d6fb2a

Please sign in to comment.