Enhancement: Declare test code in subdirectories#3
Conversation
c5e082f to
1d05bae
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3 +/- ##
========================================
Coverage ? 100.00%
Complexity ? 8
========================================
Files ? 3
Lines ? 16
Branches ? 0
========================================
Hits ? 16
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
064dc52 to
7b3ba3b
Compare
| @@ -1,5 +1,6 @@ | |||
| /.github/ export-ignore | |||
| /.phive/ export-ignore | |||
| /src/Test/ export-ignore | |||
There was a problem hiding this comment.
When you work on a package and declare test code in subdirectories of the production code, adding exclusions for test code in .gitattributes is less work.
| "exclude-from-classmap": [ | ||
| "/src/Test/" | ||
| ] |
There was a problem hiding this comment.
When you declare test code in subdirectories of production code, managing exclusions for the composer autoloader in composer.json is less work.
| "excludes": [ | ||
| "Test/" | ||
| ] |
There was a problem hiding this comment.
When you declare test code in subdirectories of production code, managing exclusions for infection/infection in infection.json is less work.
phpunit.xml
Outdated
| <exclude> | ||
| <directory>src/Test/</directory> | ||
| </exclude> |
There was a problem hiding this comment.
When you declare test code in subdirectories of production code, managing exclusions for collecting code coverage with phpunit/phpunit in phpunit.xml is less work.
33a91c4 to
a22dbce
Compare
b0b66f0 to
2de83ff
Compare
2de83ff to
ece93f9
Compare
This pull request
src/