Skip to content

Add action for release draft #1712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Conversation

Bertk
Copy link
Collaborator

@Bertk Bertk commented Nov 21, 2024

  • add release-draft.yml
  • update existing actions using permission read for content

Bertk and others added 20 commits November 21, 2024 14:25
* first tests

* some more test + refactoring

* update new unit tests

* refactoring

* test
…ore.coverage.tests (coverlet-coverage#1709)

* update versions and resolve warnings
RetryHelper for specific exceptions

* remove Tmds.ExecFunction package from coverlet.core.tests

* add coverlet.core.coverage.tests

* use .NET 6.0 assemblies

* fix some unit tests

* simplify collection intialization

* fix test AsyncForeach

* Disable again test AsyncAwait_Issue_669_2

* remove coverlet.core transitive dependencies

* Delete test/coverlet.core.coverage.tests/out.txt

* Delete test/coverlet.core.coverage.tests/public.snk

* Delete test/coverlet.core.coverage.tests/key.publickey

* fix unresponsive Test Explorer problem (RetryHelper.Do AggregateException)

- Changed task in `publish-coverage-results.yml` from
  `PublishCodeCoverageResults@1` to `PublishCodeCoverageResults@2`
  and added `reportDirectory` parameter for coverage report location.

- Added overloaded `BackupOriginalModule` methods in
  `InstrumentationHelper.cs` to improve backup flexibility,
  including a new `withBackupList` parameter.

- Updated `InstrumentationHelperTests.cs` to align tests with
  the new method signature for backing up original modules.

* Add CoverageMergeTests for CoverageResult merging

Introduced a new test class `CoverageMergeTests` in the `Coverlet.Core.Tests` namespace. This class includes multiple unit tests for the `Merge` method of the `CoverageResult` class, validating the merging of modules, documents, classes, methods, lines, and branches to ensure data integrity and correct functionality.

* Added tests in `CoverageTests.cs` to verify `GetSourceLinkUrl` behavior for matching and non-matching documents.

* Minimum line coverage 90%

* revert RetryHelper update
* use xunit.v3 for unit tests

Update dependencies and refactor test framework

- Bump `Nerdbank.GitVersioning` to version `3.7.115`.
- Add new package references for `Tmds.ExecFunction`, `xunit.v3`, and `System.Buffers`.
- Remove outdated package references in `Directory.Packages.props`.
- Update `Microsoft.NET.Test.Sdk` and `xunit` versions across projects.
- Refactor tests to use standard `Fact` attributes instead of `ConditionalFact`.
- Enhance logging and error handling in `CoverletInProcDataCollector` and `InstrumentationTask` tests.
- Clean up deprecated code and comments in test files.
- Adjust project files for compatibility with the latest .NET SDK.

* cleanup '#pragma warning disable'

* Update publish-coverage-results.yml

* enabling Microsoft Testing Platform

* enabling Microsoft Testing Platform for all tests

* Revert "enabling Microsoft Testing Platform for all tests"

This reverts commit 0447967.

* enable Microsoft Testing Platform for coverlet core tests

* remove filters handled by publish-coverage-results.yml

* add test Execute_StateUnderTest_Success()

* fix warning

* Update package versions to use property references

Refactor project files to replace hardcoded package version numbers with property references for improved maintainability. New properties added in `Directory.Packages.props` include `MicrosoftBuildVersion`, `MicrosoftCodeAnalysisVersion`, `MicrosoftNETTestSdkVersion`, `NugetPackageVersion`, `XunitV3Version`, and `XunitRunnerVisualstudioVersion`. Updated `PackageVersion` and `PackageReference` entries in relevant project files to utilize these properties, enhancing consistency and simplifying future version updates.

* use Microsoft Testing Plaform for coverlet.msbuild.task.tests

* Update projects to .NET 8 and improve CI configurations

- Changed build configuration names in Azure Pipelines to lowercase for consistency.
- Add `build.sh` with commands for building and testing with coverage.
- Updated `build.yml` to reflect new casing and added diagnostic logging for test results.
- Adjusted `coverlet.collector.csproj` and related project files for proper packaging and dependency resolution.
- Modified `coverlet.msbuild.props` to set `CoverletToolsPath` based on the operating system.
- Added new properties in `coverlet.integration.tests.csproj` for improved testing platform support.

* small documentation update

* Update changelog, documentation and add helper script `build.sh`

* disable Microsoft.Testing.Platform for coverlet.msbuild.tasks.tests

* Update NuGet package versions in Directory.Packages.props

This commit updates several NuGet package versions in the
`Directory.Packages.props` file, including:
- `NugetPackageVersion` from `6.13.1` to `6.13.2`
- `XunitV3Version` from `1.1.0` to `2.0.0`
- `Microsoft.Extensions.Logging.Abstractions` from `8.0.2` to `8.0.3`
- Fixed a syntax error in the `NuGet.Frameworks` package version line
- `LinqKit.Microsoft.EntityFrameworkCore` from `8.1.7` to `8.1.8`
- `xunit.v3` from `1.1.0` to `2.0.0`

Other package versions remain unchanged, maintaining the overall
structure of the file.

* use property XunitV3Version

* use property XunitRunnerVisualstudioVersion

* incorporate review comments
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.

2 participants