Skip to content

Commit 663b824

Browse files
linkdotnetdependabot[bot]egilbUnitBotJelleHissink
authored
V2 net8 (#1054)
* build(deps): Bump SonarAnalyzer.CSharp from 8.51.0.59060 to 8.52.0.60960 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.51.0.59060 to 8.52.0.60960. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](SonarSource/sonar-dotnet@8.51.0.59060...8.52.0.60960) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build: set AccelerateBuildsInVisualStudio to true * chore: upgrade anglesharp.diffing to 0.17.1 * docs: update changelog * Revert AngleSharp from 1.0.1 to 0.17.1 This reverts commit 8ac537a. # Conflicts: # src/AngleSharpWrappers/AngleSharpWrappers.csproj # src/bunit.web/bunit.web.csproj * Set version to '1.15' * Set version to '1.16-preview' * Updated CHANGELOG.md for 1.15.5 release * fix: allow semantic comparer to compare IHtmlUnknownElement types * Set version to '1.16' * Set version to '1.17-preview' * Updated CHANGELOG.md for 1.16.2 release * fix: wrong type assignment in doc (#975) * refactor: Use PackageOutputPath instead of -o * build(deps): Bump System.Text.Json from 7.0.1 to 7.0.2 Bumps [System.Text.Json](https://github.com/dotnet/runtime) from 7.0.1 to 7.0.2. - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v7.0.1...v7.0.2) --- updated-dependencies: - dependency-name: System.Text.Json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Honor preventdefault for events so they don't bubble (#982) * Honor preventdefault for events so they don't bubble * Small change to fix the normal bubbling events * Small rename of a private method to better indicate its intention * Improvement and simplification * Build fix by removing an empty statement * Changelog * formatting of the changelog * Updated changelog --------- Co-authored-by: Steven Giesel <stgiesel35@gmail.com> * build(deps): Bump BenchmarkDotNet from 0.13.4 to 0.13.5 Bumps [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) from 0.13.4 to 0.13.5. - [Release notes](https://github.com/dotnet/BenchmarkDotNet/releases) - [Commits](dotnet/BenchmarkDotNet@v0.13.4...v0.13.5) --- updated-dependencies: - dependency-name: BenchmarkDotNet dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Set version to '1.17' * Set version to '1.18-preview' * Updated CHANGELOG.md for 1.17.2 release * build(deps): Bump AutoFixture from 4.17.0 to 4.18.0 Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.17.0 to 4.18.0. - [Release notes](https://github.com/AutoFixture/AutoFixture/releases) - [Commits](AutoFixture/AutoFixture@v4.17.0...v4.18.0) --- updated-dependencies: - dependency-name: AutoFixture dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump AutoFixture.Xunit2 from 4.17.0 to 4.18.0 Bumps [AutoFixture.Xunit2](https://github.com/AutoFixture/AutoFixture) from 4.17.0 to 4.18.0. - [Release notes](https://github.com/AutoFixture/AutoFixture/releases) - [Commits](AutoFixture/AutoFixture@v4.17.0...v4.18.0) --- updated-dependencies: - dependency-name: AutoFixture.Xunit2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.4.1 to 17.5.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](microsoft/vstest@v17.4.1...v17.5.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Escape text inside html tag and attributes * fix: Added tests for escpable characters * fix: Escape text inside html tag * Added changelog entry * chore: code cleanup * fix: optimize char replacement --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * build(deps): Bump SonarAnalyzer.CSharp from 8.52.0.60960 to 8.53.0.62665 (#988) * build(deps): Bump SonarAnalyzer.CSharp from 8.52.0.60960 to 8.53.0.62665 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.52.0.60960 to 8.53.0.62665. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](SonarSource/sonar-dotnet@8.52.0.60960...8.53.0.62665) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: code analyzer rules code updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Egil Hansen <egil@assimilated.dk> * fix: submit button/input element submits form (#1000) * fix: submit button/input element submits form * handle other edge cases * code clean up * simplify conditionals * Set version to '1.18' * Set version to '1.19-preview' * Updated CHANGELOG.md for 1.18.4 release * chore: use file scoped namespaces * Simplify null coalescing * refactor: use early return and simplify call * fix(nullable): forward nullability correctly (#1013) * fix(nullable): forward nullability correctly * Update src/bunit.web/TestContext.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: improve examples of semantic comparison modifiers * build(deps): Bump AngleSharp.Diffing from 0.17.1 to 0.18.1 Bumps [AngleSharp.Diffing](https://github.com/AngleSharp/AngleSharp.Diffing) from 0.17.1 to 0.18.1. - [Release notes](https://github.com/AngleSharp/AngleSharp.Diffing/releases) - [Changelog](https://github.com/AngleSharp/AngleSharp.Diffing/blob/devel/CHANGELOG.md) - [Commits](AngleSharp/AngleSharp.Diffing@v0.17.1...v0.18.1) --- updated-dependencies: - dependency-name: AngleSharp.Diffing dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: change code ref to correct type * chore: code clean up * fix: clean up tests * fix: run markup updates in users sync context * fix: synchronize code that reads/writes to the internal render tree in TestRenderer/Renderer * build(deps): Bump SonarAnalyzer.CSharp from 8.54.0.63966 to 8.56.0.67649 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.54.0.63966 to 8.56.0.67649. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](https://github.com/SonarSource/sonar-dotnet/commits/8.56.0.67649) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump dotnet-serve from 1.7.125 to 1.10.155 Bumps [dotnet-serve](https://github.com/natemcmaster/dotnet-serve) from 1.7.125 to 1.10.155. - [Release notes](https://github.com/natemcmaster/dotnet-serve/releases) - [Commits](https://github.com/natemcmaster/dotnet-serve/commits/v1.10.155) --- updated-dependencies: - dependency-name: dotnet-serve dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Custom elements with attributes throw exception * fix: Better naming for test method (#1048) * fix: Better naming for test method * fix: Don't use unknown matcher first * fix: Don't use unknown matcher first * Add attribute * Merge stable into main (#1050) * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: change code ref to correct type --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * Set version to '1.19' * Set version to '1.20-preview' * Updated CHANGELOG.md for 1.19.14 release * Update to net8.0 * Remove preprocessor directives * Wave 2 * Remove net60 dep in test * More changes * Bump actions --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Egil Hansen <egil@assimilated.dk> Co-authored-by: bUnit bot <bot@bunit.dev> Co-authored-by: JelleHissink <Jelle@CodeWise.nl> Co-authored-by: Florian Dohrendorf <LunicLynx@users.noreply.github.com>
1 parent 01fdcef commit 663b824

File tree

294 files changed

+3239
-3905
lines changed

Some content is hidden

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

294 files changed

+3239
-3905
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-serve": {
6-
"version": "1.7.125",
6+
"version": "1.10.155",
77
"commands": [
88
"dotnet-serve"
99
]

.editorconfig

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ root = true
33
[*]
44
indent_style = tab
55
indent_size = tab
6-
tab_size = 4
6+
tab_width = 4
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
@@ -256,12 +256,12 @@ dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_
256256
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
257257
# disallowed_style - Anything that has this style applied is marked as disallowed
258258
dotnet_naming_style.disallowed_style.capitalization = pascal_case
259-
dotnet_naming_style.disallowed_style.required_prefix =
260-
dotnet_naming_style.disallowed_style.required_suffix =
259+
dotnet_naming_style.disallowed_style.required_prefix =
260+
dotnet_naming_style.disallowed_style.required_suffix =
261261
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
262262
dotnet_naming_style.internal_error_style.capitalization = pascal_case
263-
dotnet_naming_style.internal_error_style.required_prefix =
264-
dotnet_naming_style.internal_error_style.required_suffix =
263+
dotnet_naming_style.internal_error_style.required_prefix =
264+
dotnet_naming_style.internal_error_style.required_suffix =
265265

266266
##########################################
267267
# .NET Design Guideline Field Naming Rules
@@ -418,7 +418,7 @@ dotnet_diagnostic.MA0028.severity = none # https://github.com/atc-net
418418
# Microsoft - Code Analysis
419419
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
420420
dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md
421-
dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
421+
dotnet_diagnostic.instance007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
422422

423423

424424
# SonarAnalyzer.CSharp
@@ -442,10 +442,18 @@ dotnet_diagnostic.MA0018.severity = none # MA0018: Do not declare static members
442442

443443
# Microsoft - Code Analysis
444444
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
445+
dotnet_diagnostic.CA1000.severity = none # CA1000: Do not declare static members on generic types
445446
dotnet_diagnostic.CA1014.severity = none # CA1014: Mark assemblies with CLSCompliant
446447
dotnet_diagnostic.CA1031.severity = suggestion # CA1031: Do not catch general exception types
447448
dotnet_diagnostic.CA1032.severity = none # CA1032: Implement standard exception constructors
449+
dotnet_diagnostic.CA1054.severity = none # CA1054: Uri parameters should not be strings
450+
dotnet_diagnostic.CA1056.severity = none # CA1056: Uri properties should not be strings
451+
dotnet_diagnostic.CA1308.severity = none # CA1308: Normalize strings to uppercase
452+
dotnet_diagnostic.CA1710.severity = none # CA1710: Identifiers should have correct suffix
453+
dotnet_diagnostic.CA1711.severity = none # CA1711: Identifiers should not have incorrect suffix
454+
dotnet_diagnostic.CA2007.severity = none # CA2007: Consider calling ConfigureAwait on the awaited task
448455
dotnet_diagnostic.CA2201.severity = suggestion # CA2201: Do not raise reserved exception types
456+
dotnet_diagnostic.CA2225.severity = none # CA2225: Operator overloads have named alternates
449457

450458
# SonarAnalyzer.CSharp
451459
# https://rules.sonarsource.com/csharp
@@ -485,11 +493,16 @@ dotnet_diagnostic.MA0048.severity = silent # MA0048: File name must match type n
485493

486494
# Microsoft - Code Analysis
487495
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
496+
dotnet_diagnostic.CA1019.severity = none # CA1019: Define accessors for attribute arguments
497+
dotnet_diagnostic.CA1034.severity = none # CA1034: Nested types should not be visible
488498
dotnet_diagnostic.CA1054.severity = none # CA1054: URI-like parameters should not be strings
489499
dotnet_diagnostic.CA1062.severity = none # CA1062: Validate arguments of public methods
500+
dotnet_diagnostic.CA1508.severity = none # CA1508: Avoid dead conditional code
490501
dotnet_diagnostic.CA1707.severity = none # CA1707: Identifiers should not contain underscores
502+
dotnet_diagnostic.CA1708.severity = none # CA1708: Identifiers should differ by more than case
491503
dotnet_diagnostic.CA1812.severity = none # CA1812: Avoid uninstantiated internal classes - components under test are never instantiated directly.
492504
dotnet_diagnostic.CA1822.severity = suggestion # CA1822: Mark members as static
505+
dotnet_diagnostic.CA1859.severity = none # CA1859:
493506
dotnet_diagnostic.CA2007.severity = none # CA2007: Consider calling ConfigureAwait on the awaited task
494507

495508
# Microsoft - FxCop
@@ -504,3 +517,5 @@ dotnet_diagnostic.S125.severity = none # S125: Sections of code should not be co
504517
dotnet_diagnostic.S3459.severity = none # S3459: Unassigned members should be removed
505518
dotnet_diagnostic.S3871.severity = none # S3871: Exception types should be "public"
506519
dotnet_diagnostic.S1186.severity = none # S1186: Methods should not be empty
520+
dotnet_diagnostic.S1133.severity = none # S1133: Deprecated code should be removed
521+
dotnet_diagnostic.S3963.severity = none # S3963: "static" fields should be initialized inline (covered by CA1810)

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ jobs:
6464
uses: actions/setup-dotnet@v3
6565
with:
6666
dotnet-version: |
67-
6.0.x
68-
7.0.x
67+
8.0.x
6968
7069
- name: 🎨 Setup color
7170
run: |

.github/workflows/release-preview.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
uses: actions/setup-dotnet@v3
3333
with:
3434
dotnet-version: |
35-
6.0.x
36-
7.0.x
35+
8.0.x
3736
3837
- name: 🎨 Setup color
3938
run: |
@@ -47,9 +46,9 @@ jobs:
4746

4847
- name: 🛠️ Packing library in release mode
4948
run: |
50-
dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
51-
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
52-
dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
49+
dotnet pack -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
50+
dotnet pack src/bunit/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
51+
dotnet pack src/bunit.template/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
5352
5453
- name: 🛠️ Upload library to GitHub Package Repository
5554
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/bunit-dev/index.json --skip-duplicate --no-symbols

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ jobs:
6363
uses: actions/setup-dotnet@v3
6464
with:
6565
dotnet-version: |
66-
6.0.x
67-
7.0.x
66+
8.0.x
6867
6968
- name: 🛠️ Update changelog
7069
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
@@ -90,9 +89,9 @@ jobs:
9089

9190
- name: 🛠️ Packing library in release mode
9291
run: |
93-
dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
94-
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
95-
dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
92+
dotnet pack -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
93+
dotnet pack src/bunit/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
94+
dotnet pack src/bunit.template/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
9695
9796
- name: 🛠️ Upload library to NuGet.org repository
9897
run: |

.github/workflows/verification.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
uses: actions/setup-dotnet@v3
4141
with:
4242
dotnet-version: |
43-
6.0.x
44-
7.0.x
43+
8.0.x
4544
4645
- name: 🎨 Setup color
4746
if: matrix.os != 'windows-latest'
@@ -77,9 +76,9 @@ jobs:
7776
7877
- name: 🗳️ Pack library
7978
run: |
80-
dotnet pack -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
81-
dotnet pack src/bunit/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
82-
dotnet pack src/bunit.template/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
79+
dotnet pack -c release --property:PackageOutputPath=${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
80+
dotnet pack src/bunit/ -c release --property:PackageOutputPath=${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
81+
dotnet pack src/bunit.template/ -c release --property:PackageOutputPath=${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true
8382
8483
- name: ✳ Install bUnit template
8584
run: |

0 commit comments

Comments
 (0)