Skip to content

Conversation

@rodrigowbazevedo
Copy link

Add code coverage configuration to customize the path and the file name.

Copilot AI review requested due to automatic review settings August 1, 2025 17:32
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds configuration options for code coverage functionality, allowing users to customize the output path and file name. The changes update the Configuration interface to support generic types and introduce two new configuration settings for coverage customization.

  • Updated Configuration interface to use generic type parameters for better type safety
  • Added two new configuration settings: phpunit.coveragePath and phpunit.coverageFile
  • Modified Xdebug class to use configurable coverage directory and file names instead of hardcoded values

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/PHPUnit/Configuration.ts Updated interface and implementation to support generic types for configuration values
src/PHPUnit/CommandBuilder/Xdebug.ts Modified to use configurable coverage path and file name settings
package.json Added new configuration properties for coverage path and file customization
README.md Added documentation for the new coverage configuration options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant