Skip to content

Commit 5d2841f

Browse files
Merge pull request #79 from Chris-Wolfgang/feature/testkit-changes
Feature/testkit changes
2 parents d336e9a + 54b0466 commit 5d2841f

File tree

18 files changed

+182
-126
lines changed

18 files changed

+182
-126
lines changed

.editorconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ dotnet_diagnostic.MA0004.severity = none # Meziantou: Use ConfigureAwait
352352
dotnet_diagnostic.S3216.severity = none # SonarAnalyzer: ConfigureAwait
353353
dotnet_diagnostic.CA2007.severity = none # .NET Analyzer: Use ConfigureAwait
354354

355+
# Prefer expression bodies - suppress the suggestion to use block bodies instead
356+
dotnet_diagnostic.IDE0022.severity = none # Expression bodies preferred
357+
358+
# Test method names use Async by convention — VSTHRD200 is a false positive here
359+
dotnet_diagnostic.VSTHRD200.severity = none # Async suffix not required in test method names
360+
355361
# Test projects - relaxed naming, no doc requirements
356362
[tests/**/*.cs]
357363
# Allow Test_Method_Names_With_Underscores
@@ -402,7 +408,8 @@ dotnet_diagnostic.SA1600.severity = none
402408
dotnet_diagnostic.SA1601.severity = none
403409
dotnet_diagnostic.SA1602.severity = none
404410

405-
# Benchmark projects - relaxed naming, no doc requirements
411+
412+
# Benchmark, no doc requirements
406413
[benchmarks/**/*.cs]
407414
# Allow Benchmark_Method_Names
408415
dotnet_diagnostic.SA1300.severity = none

.github/workflows/pr.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ jobs:
5353
fi
5454
5555
# ============================================================================
56-
# STAGE 1: Linux - .NET Tests (no coverage collection)
56+
# STAGE 1: Linux - .NET Core/5+ Tests with Coverage Gate
5757
# ============================================================================
5858
test-linux-core:
59-
name: "Stage 1: Linux Tests (.NET 5.0-10.0 and netcoreapp3.1) + Coverage Gate"
59+
name: "Stage 1: Linux Tests (.NET 5.0-10.0) + Coverage Gate"
6060
runs-on: ubuntu-latest
6161
needs: detect-projects
6262
if: github.repository != 'Chris-Wolfgang/repo-template' && needs.detect-projects.outputs.has-projects == 'true'
@@ -175,7 +175,7 @@ jobs:
175175
echo ""
176176
echo "✅ All compatible projects built successfully"
177177
178-
- name: Run tests (.NET 5.0-10.0 and netcoreapp3.1)
178+
- name: Run tests with coverage (.NET Core 5.0 - 10.0)
179179
run: |
180180
# Find all test projects (C#, VB.NET, F#)
181181
mapfile -d '' -t test_projects < <(find ./tests -type f \( -name "*.csproj" -o -name "*.vbproj" -o -name "*.fsproj" \) -print0)
@@ -310,10 +310,10 @@ jobs:
310310
tests/**/bin/Release
311311
312312
# ============================================================================
313-
# STAGE 2: Windows - All .NET Tests + Coverage Gate (Gated by Stage 1)
313+
# STAGE 2: Windows - All .NET Tests (Gated by Stage 1)
314314
# ============================================================================
315315
test-windows:
316-
name: "Stage 2: Windows Tests (.NET 5.0-10.0, Framework 4.6.2-4.8.1) + Coverage"
316+
name: "Stage 2: Windows Tests (.NET 5.0-10.0, Framework 4.6.2-4.8.1)"
317317
runs-on: windows-latest
318318
needs: [detect-projects, test-linux-core]
319319
if: success() && github.repository != 'Chris-Wolfgang/repo-template' && needs.detect-projects.outputs.has-projects == 'true'
@@ -329,8 +329,6 @@ jobs:
329329
uses: actions/setup-dotnet@v4
330330
with:
331331
dotnet-version: |
332-
3.1.x
333-
3.1.x
334332
3.1.x
335333
5.0.x
336334
6.0.x
@@ -345,7 +343,7 @@ jobs:
345343
- name: Build solution
346344
run: dotnet build --no-restore --configuration Release
347345

348-
- name: Run all .NET tests with coverage (.NET 5.0-10.0 and Framework 4.6.2-4.8.1)
346+
- name: Run all .NET tests (.NET 5.0-10.0 and Framework 4.6.2-4.8.1)
349347
shell: pwsh
350348
run: |
351349
$ErrorActionPreference = 'Stop'
@@ -506,10 +504,10 @@ jobs:
506504
CoverageReport/
507505
508506
# ============================================================================
509-
# STAGE 3: macOS Tests (Gated by Stage 2) + Coverage
507+
# STAGE 3: macOS Tests (Gated by Stage 2)
510508
# ============================================================================
511509
test-macos-core:
512-
name: "Stage 3: macOS Tests (.NET 6.0-10.0) + Coverage"
510+
name: "Stage 3: macOS Tests (.NET 6.0-10.0)"
513511
runs-on: macos-latest
514512
needs: [detect-projects, test-windows]
515513
if: github.repository != 'Chris-Wolfgang/repo-template' && needs.detect-projects.outputs.has-projects == 'true' && needs.test-windows.result == 'success'

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
</PackageReference>
4646

4747
<!-- Meziantou - Comprehensive code quality -->
48-
<PackageReference Include="Meziantou.Analyzer" Version="3.0.22">
48+
<PackageReference Include="Meziantou.Analyzer" Version="3.0.23">
4949
<PrivateAssets>all</PrivateAssets>
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
</PackageReference>
5252

5353
<!-- SonarAnalyzer - Industry-standard analysis -->
54-
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.20.0.135146">
54+
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.21.0.135717">
5555
<PrivateAssets>all</PrivateAssets>
5656
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5757
</PackageReference>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>

examples/Net4.8/Example4a-WithExtractorProgress/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime" version="4.3.1" targetFramework="net48" />
55
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
66
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.3" targetFramework="net48" />
3+
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.5" targetFramework="net48" />
44
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
55
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" />
66
</packages>

0 commit comments

Comments
 (0)