Skip to content

Commit a3d2520

Browse files
authored
Merge pull request #1405 from bUnit-dev/release/v1.27
Release of new minor version v1.27
2 parents da14d46 + 289bd9d commit a3d2520

File tree

60 files changed

+706
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+706
-246
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"docfx": {
12-
"version": "2.74.1",
12+
"version": "2.75.3",
1313
"commands": [
1414
"docfx"
1515
]

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ jobs:
4949
6.0.x
5050
7.0.x
5151
8.0.x
52+
9.0.x
5253
5354
- name: ⚙️ Setup GIT versioning
54-
uses: dotnet/[email protected].1
55+
uses: dotnet/[email protected].2
5556
with:
5657
setAllVars: true
5758

@@ -109,7 +110,7 @@ jobs:
109110
- name: Validate package
110111
shell: pwsh
111112
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NUGET_DIRECTORY }}/*.nupkg") --excluded-rules IconMustBeSet
112-
113+
113114
run-test:
114115
strategy:
115116
fail-fast: false
@@ -132,6 +133,7 @@ jobs:
132133
6.0.x
133134
7.0.x
134135
8.0.x
136+
9.0.x
135137
136138
- name: 🧪 Run unit tests
137139
run: dotnet test -c release --blame --blame-crash --blame-hang
@@ -163,7 +165,7 @@ jobs:
163165
path: ${{ env.NUGET_DIRECTORY }}
164166

165167
- name: ⚙️ Setup GIT versioning
166-
uses: dotnet/[email protected].1
168+
uses: dotnet/[email protected].2
167169
with:
168170
setAllVars: true
169171

@@ -209,9 +211,10 @@ jobs:
209211
6.0.x
210212
7.0.x
211213
8.0.x
214+
9.0.x
212215
213216
- name: ⚙️ Setup GIT versioning
214-
uses: dotnet/[email protected].1
217+
uses: dotnet/[email protected].2
215218
with:
216219
setAllVars: true
217220

@@ -245,7 +248,7 @@ jobs:
245248
- name: 'Checkout Repository'
246249
uses: actions/checkout@v4
247250
- name: 'Dependency Review'
248-
uses: actions/dependency-review-action@v3
251+
uses: actions/dependency-review-action@v4
249252

250253
release-preview:
251254
if: github.event_name == 'workflow_dispatch' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2')

.github/workflows/docs-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
git config --global commit.gpgsign true
5151
5252
- name: ⚙️ Setup GIT versioning
53-
uses: dotnet/[email protected].1
53+
uses: dotnet/[email protected].2
5454
with:
5555
setAllVars: true
5656

@@ -77,6 +77,7 @@ jobs:
7777
6.0.x
7878
7.0.x
7979
8.0.x
80+
9.0.x
8081
8182
- name: 🎨 Setup color
8283
run: |

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
git config --global commit.gpgsign true
5050
5151
- name: ⚙️ Setup GIT versioning
52-
uses: dotnet/[email protected].1
52+
uses: dotnet/[email protected].2
5353
with:
5454
setAllVars: true
5555

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
git config --global commit.gpgsign true
5050
5151
- name: ⚙️ Setup GIT versioning
52-
uses: dotnet/[email protected].1
52+
uses: dotnet/[email protected].2
5353
with:
5454
setAllVars: true
5555

@@ -62,9 +62,10 @@ jobs:
6262
6.0.x
6363
7.0.x
6464
8.0.x
65+
9.0.x
6566
6667
- name: 🛠️ Update changelog
67-
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
68+
uses: thomaseizinger/keep-a-changelog-new-release@2.0.0
6869
with:
6970
version: ${{ env.NBGV_SemVer2 }}
7071

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
### Added
10+
- Support for `IKeyedServiceProvider` in net8.0. Reported by [@ViRuSTriNiTy](https://github.com/ViRuSTriNiTy). By [@linkdotnet](https://github.com/linkdotnet).
11+
- Support for `net9.0`. NOTE, there is no commitment as of now to support net9.0 in bUnit v1. However. Support for net9.0 may move to a future v2 release of bUnit and be deprecated in v1. However, allowing bUnit to build and work with net9.0 previews allows our users to keep testing!
12+
13+
### Fixed
14+
- Support for `SupplyFromQueryParameter` in net8.0. Reported by [@aayjaychan](https://github.com/aayjaychan). Fixed by [@egil](https://github.com/egil) and [@linkdotnet](https://github.com/linkdotnet).
15+
916
## [1.26.64] - 2023-12-20
1017

1118
### Changed
1219

13-
- Upgraded AngleSharp to 1.0.7.
20+
- Upgraded AngleSharp to 1.0.7. Info: The usage of `AngleSharpWrappers` is not needed anymore. Any usage of `Unwrap` should not be needed anymore.
1421

1522
### Fixed
1623

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<DotNet6Version>6.0.*</DotNet6Version>
88
<DotNet7Version>7.0.*</DotNet7Version>
99
<DotNet8Version>8.0.*</DotNet8Version>
10+
<DotNet9Version>9.0.0-*</DotNet9Version>
1011
</PropertyGroup>
1112

1213
<!-- Solution wide properties -->
@@ -51,7 +52,7 @@
5152
<!-- Shared code analyzers used for all projects in the solution -->
5253
<ItemGroup Label="Code Analyzers">
5354
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
54-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.15.0.81779" PrivateAssets="All" />
55+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.20.0.85982" PrivateAssets="All" />
5556
</ItemGroup>
5657

5758
<ItemGroup Label="Implicit usings"

benchmark/bunit.benchmarks/bunit.benchmarks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="BenchmarkDotNet" Version="0.13.11" />
11+
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
@@ -17,4 +17,4 @@
1717
<ProjectReference Include="..\bunit.benchmarks.assets\bunit.benchmarks.assets.csproj" />
1818
</ItemGroup>
1919

20-
</Project>
20+
</Project>

bunit.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.testassets", "tests\b
4848
EndProject
4949
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".workflows", ".workflows", "{3B2F3419-5336-4147-A212-E19091195203}"
5050
ProjectSection(SolutionItems) = preProject
51+
.github\workflows\ci.yml = .github\workflows\ci.yml
5152
.github\workflows\docs-deploy.yml = .github\workflows\docs-deploy.yml
5253
.github\workflows\prepare-release.yml = .github\workflows\prepare-release.yml
5354
.github\workflows\release-preview.yml = .github\workflows\release-preview.yml
5455
.github\workflows\release.yml = .github\workflows\release.yml
55-
.github\workflows\verification.yml = .github\workflows\verification.yml
5656
EndProjectSection
5757
EndProject
5858
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmark", "benchmark", "{F6084D31-2A92-4794-A47E-A8F2254E6970}"
@@ -72,7 +72,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.generators.internal",
7272
EndProject
7373
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.generators.tests", "tests\bunit.generators.tests\bunit.generators.tests.csproj", "{09046981-D9EC-4295-8502-721AC54E1F12}"
7474
EndProject
75-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.generators", "src\bunit.generators\bunit.generators.csproj", "{A7C6A2AA-FF8F-4ED1-8590-5324FC566059}"
75+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.generators", "src\bunit.generators\bunit.generators.csproj", "{A7C6A2AA-FF8F-4ED1-8590-5324FC566059}"
7676
EndProject
7777
Global
7878
GlobalSection(SolutionConfigurationPlatforms) = preSolution

docs/site/docs/extensions/bunit-generators.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,11 @@ internal partial class ThirdPartyStub { }
8282
```
8383

8484
Current limitations of this approach is that he stubbed type is not allowed to be nested inside the test class.
85+
86+
## Reported Diagnostics
87+
The generators will report a range of diagnostics to help understanding what issue is present. The following table shows the diagnostics that are reported.
88+
89+
| Diagnostic ID | Error | Severity | Description |
90+
| ------------- | ----------------------------------------------- | -------- | ---------------------------------------------------------------------------- |
91+
| BUNIT0001 | Stubbing nested classes ({0}) is not supported. | Warning | Types annotated with `ComponentStub` can not be nested inside another class. |
92+
| BUNIT0002 | Class ({0}) is not partial. | Warning | Types annotated with `ComponentStub` must be partial. |

0 commit comments

Comments
 (0)