Commit 47cdd27
authored
Use Xunit.v3 (latest release) (#1720)
* 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 comments1 parent e106d0d commit 47cdd27
File tree
111 files changed
+1343
-1039
lines changed- Documentation
- Examples
- MSBuild
- DeterministicBuild
- XUnitTestProject1
- MergeWith
- XUnitTestProject1
- XUnitTestProject2
- XUnitTestProject3
- VSTest
- DeterministicBuild
- XUnitTestProject1
- HelloWorld/XUnitTestProject1
- eng
- src
- coverlet.collector
- DataCollection
- InProcDataCollection
- Properties
- coverlet.console
- Properties
- coverlet.core
- ConsoleTables
- Helpers
- Instrumentation
- Reporters
- Symbols
- coverlet.msbuild.tasks
- test
- coverlet.collector.tests
- coverlet.core.coverage.tests
- Coverage
- Instrumentation
- coverlet.core.performancetest
- coverlet.core.tests.samples.netstandard
- coverlet.core.tests
- ConsoleTable
- Coverage
- Helpers
- Instrumentation
- Reporters
- Symbols
- coverlet.integration.determisticbuild
- coverlet.integration.template
- coverlet.integration.tests
- coverlet.msbuild.tasks.tests
- TestAssets
- coverlet.tests.projectsample.aspmvcrazor.tests
- coverlet.tests.projectsample.aspnet8.tests
- coverlet.tests.remoteexecutor
- coverlet.tests.utils/Properties
- coverlet.tests.xunit.extensions
- Properties
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
111 files changed
+1343
-1039
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
13 | | - | |
14 | | - | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | | - | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | | - | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
41 | | - | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 61 | | |
56 | 62 | | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
63 | | - | |
64 | | - | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments