Skip to content

Conversation

@Bertk
Copy link
Collaborator

@Bertk Bertk commented Dec 6, 2025

This pull request introduces several infrastructure and dependency management improvements, as well as updates to documentation and solution structure. The key changes include the addition of new projects for Microsoft Testing Platform (MTP) integration.

Solution Structure:

  • Added new projects for MTP integration and testing (coverlet.MTP, coverlet.MTP.validation.tests, coverlet.MTP.unit.tests) to the solution file, including their build and folder organization.

Documentation Improvements:

  • Added a placeholder for MTP integration documentation (Documentation/Coverlet.MTP.Integration.md).

Most important changes:

1. Solution and API Governance

  • Added new projects for Microsoft Testing Platform integration and corresponding tests to the solution file.

2. Documentation

  • Created a placeholder for future documentation on Coverlet MTP integration.

Bertk added 4 commits December 6, 2025 11:13
- Updated target frameworks to net472 in coverlet.core and coverlet.msbuild.tasks projects
- Adjusted CoverletToolsPath for multi-targeting support in buildMultiTargeting props and targets
- Created unit tests for Coverlet.MTP command line options validation
- Added documentation for Coverlet.MTP integration
- Added CoverletExtensionCollector to handle test session lifecycle for coverage collection.
- Introduced CoverletExtensionCommandLineProvider for command line options.
- Created CoverletExtensionConfiguration to manage configuration settings.
- Developed CoverletLoggerAdapter for logging integration with Microsoft Testing Platform.
- Implemented CoverletExtensionEnvironmentVariableProvider for environment variable management.
- Added CoverletExtensionProvider to register the Coverlet extension with the testing platform.
- Created TestingPlatformBuilderHook to facilitate extension registration.
- Updated project files to include necessary dependencies and configurations for Coverlet.
- Added support for multiple target frameworks (net8.0 and net9.0).
- Included build and packaging configurations for Coverlet.MTP.
- Implemented command line options for coverage report formats and exclusions.
- Established logging mechanisms for better traceability during coverage collection.
@Bertk Bertk added the feature PR label for new features label Dec 9, 2025
Bertk added 8 commits December 9, 2025 11:24
- Updated target frameworks to net472 in coverlet.core and coverlet.msbuild.tasks projects
- Adjusted CoverletToolsPath for multi-targeting support in buildMultiTargeting props and targets
- Created unit tests for Coverlet.MTP command line options validation
- Added documentation for Coverlet.MTP integration
- Added CoverletExtensionCollector to handle test session lifecycle for coverage collection.
- Introduced CoverletExtensionCommandLineProvider for command line options.
- Created CoverletExtensionConfiguration to manage configuration settings.
- Developed CoverletLoggerAdapter for logging integration with Microsoft Testing Platform.
- Implemented CoverletExtensionEnvironmentVariableProvider for environment variable management.
- Added CoverletExtensionProvider to register the Coverlet extension with the testing platform.
- Created TestingPlatformBuilderHook to facilitate extension registration.
- Updated project files to include necessary dependencies and configurations for Coverlet.
- Added support for multiple target frameworks (net8.0 and net9.0).
- Included build and packaging configurations for Coverlet.MTP.
- Implemented command line options for coverage report formats and exclusions.
- Established logging mechanisms for better traceability during coverage collection.
…ationString for consistency and lowercase output
@Bertk Bertk added the breaking-change Issue or PR that represents a breaking change in features or functional. label Dec 9, 2025
@Bertk
Copy link
Collaborator Author

Bertk commented Dec 9, 2025

The code coverage dropped and shall be fixed before merge.

main branch: line 90% branch 87%
this branch: line 74% branch 71%

@Bertk Bertk added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Dec 9, 2025
Bertk added 4 commits December 9, 2025 13:56
…ment for consistency across environments"

This reverts commit 06a684c.
- Expanded MTP integration docs and added usage ToDo
- Enabled package generation in coverlet.MTP.csproj
- Added strong name signing for validation tests
- Updated validation test project: new dependencies, utility refs, and test project copying
- Updated InternalsVisibleTo for new test assemblies
Introduce a comprehensive validation test suite for the Coverlet Microsoft Testing Platform (MTP) extension, including new integration and CLI option tests. Add isolated test infrastructure with sample projects and custom MSBuild props/targets to ensure tests run in a pure MTP environment. Update packaging logic in coverlet.MTP to improve dependency handling and NuGet layout, and adjust build system to better support MTP scenarios. Also includes minor bug fixes and ensures correct local package versioning in tests.
    - Enhance test output with detailed diagnostics and error context
    - Use robust assertions with informative failure messages
    - Create temp test projects under artifacts/tmp for isolation
    - Add retries and file attribute handling to test dir cleanup
    - Check for test executable and coverlet.MTP.dll before running
    - Refactor HelpCommandTests for consistent path handling
    - Fix sample class naming mismatch in test project
    - Add condition to MSBuild import for props file robustness
    - Update NuGet config and project file handling for clarity
Renamed the constant sutName to SutName in HelpCommandTests
to follow .NET PascalCase naming conventions for constants.
Updated all references to use the new name for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Issue or PR that represents a breaking change in features or functional. feature PR label for new features * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant