Skip to content

Relocate tests using Tmds.ExecFunction to new test project coverlet.core.coverage.tests #1709

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

Merged

Conversation

Bertk
Copy link
Collaborator

@Bertk Bertk commented Nov 9, 2024

This pull request includes the following changes and enhancements:

Testing:

  • unit tests using Tmds.ExecFunction relocated to coverlet.core.coverage.tests.
  • coverlet.core.tests execution will now run in VS 2022 without failing tests.

Build pipeline:

  • test runs names use now target OS and configuration instead of generic name like 'VSTest_TestResults_3262_3'
  • test results and code coverage are now also available after a test has failed

@Bertk Bertk changed the title Core tests fail after sdk update coverlet.core tests fail after SDK update 8.0.403 Nov 9, 2024
@Bertk Bertk force-pushed the core-tests-fail-after-SDK-update branch 3 times, most recently from 3ab0dbe to 6bcb423 Compare January 8, 2025 09:07
@Bertk Bertk changed the title coverlet.core tests fail after SDK update 8.0.403 Relocate tests using Tmds.ExecFunction to new test project coverlet.core.coverage.tests Jan 8, 2025
@Bertk Bertk marked this pull request as ready for review January 8, 2025 10:06
Bertk added a commit to Bertk/coverlet that referenced this pull request Jan 13, 2025
Bertk added 13 commits January 16, 2025 08:27
RetryHelper for specific exceptions
…tion)

- 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.
@Bertk Bertk force-pushed the core-tests-fail-after-SDK-update branch from d3ebb74 to 749f017 Compare January 16, 2025 07:53
Bertk added a commit to Bertk/coverlet that referenced this pull request Jan 16, 2025
Bertk added 4 commits January 16, 2025 17:10
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.
…or for matching and non-matching documents.
Copy link
Collaborator

@daveMueller daveMueller left a comment

Choose a reason for hiding this comment

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

I have one last question. Are you sure that test/coverlet.core.coverage.tests/out.txt, test/coverlet.core.coverage.tests/public.snk and test/coverlet.core.coverage.tests/key.publickey aren't needed anymore? Could you figure out for what they were used in the past?

@Bertk
Copy link
Collaborator Author

Bertk commented Jan 22, 2025

I have one last question. Are you sure that test/coverlet.core.coverage.tests/out.txt, test/coverlet.core.coverage.tests/public.snk and test/coverlet.core.coverage.tests/key.publickey aren't needed anymore? Could you figure out for what they were used in the past?

This are some intermediat files which are not necessary. I use out.txt for test scripts and public.snk, key.publickey for new project with strong named assembly.

@daveMueller daveMueller merged commit e106d0d into coverlet-coverage:master Jan 22, 2025
8 checks passed
@Bertk Bertk deleted the core-tests-fail-after-SDK-update branch January 23, 2025 08:32
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.

3 participants