Skip to content

Commit b7fa6c8

Browse files
committed
ci: refine workflows and update contributing documentation
- docs: update CONTRIBUTING.md with TUnit instructions and project examples - ci: improve test runner scripts for Windows and Unix - ci: refine CI/CD and publish workflows - docs: update CODE_OF_CONDUCT.md and CHANGELOG.md
1 parent 078d484 commit b7fa6c8

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We pledge to act and interact in ways that contribute to an open, welcoming, div
1212

1313
## Enforcement
1414

15-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]).
15+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]).
1616

1717
All complaints will be reviewed and investigated promptly and fairly.
1818

.github/CONTRIBUTING.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This project follows the [Contributor Covenant Code of Conduct](.github/CODE_OF_
2424

2525
### Prerequisites
2626

27-
- [.NET SDK 9.0](https://dotnet.microsoft.com/download) (for development)
27+
- [.NET SDK 10.0](https://dotnet.microsoft.com/download) (for development)
2828
- [Docker](https://docs.docker.com/get-docker/) (for LocalStack testing)
2929
- [Git](https://git-scm.com/downloads)
3030
- IDE: [Visual Studio](https://visualstudio.microsoft.com/), [Rider](https://www.jetbrains.com/rider/), or [VS Code](https://code.visualstudio.com/)
@@ -52,12 +52,17 @@ This project follows the [Contributor Covenant Code of Conduct](.github/CODE_OF_
5252

5353
3. **Run Tests**
5454

55+
This project uses [TUnit](https://tunit.dev/) as its testing framework.
56+
5557
```bash
56-
# All tests
57-
dotnet test --configuration Release
58+
# Run all tests
59+
dotnet test
60+
61+
# Run tests for a specific project
62+
dotnet test --project tests/Aspire.Hosting.LocalStack.Unit.Tests/Aspire.Hosting.LocalStack.Unit.Tests.csproj
5863
59-
# With coverage
60-
dotnet test --configuration Release
64+
# Run specific tests (using standard filter syntax)
65+
dotnet test --filter "FullyQualifiedName~HealthCheck"
6166
```
6267

6368
## 🐛 Reporting Issues
@@ -143,7 +148,7 @@ We love new ideas! Here's how to suggest features:
143148

144149
We have multiple test types:
145150

146-
- **Unit Tests** - Fast, isolated, no external dependencies
151+
- **Unit Tests** - Fast, isolated, no external dependencies (using TUnit)
147152
- **Integration Tests** - Test AWS Aspire integration
148153

149154
When adding tests:

.github/actions/run-dotnet-tests/run-unix.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ for tfm in "${TFMS[@]}"; do
3030
[[ -z "$tfm" ]] && continue
3131

3232
echo "🧪 $tfm ..."
33-
# --timeout ensures test session exits properly (workaround for MTP Linux shutdown bug)
3433
dotnet test --project "$PROJECT_PATH" -c "$CONFIGURATION" -f "$tfm" --no-build \
3534
--report-trx --report-trx-filename "testResults-$tfm.trx" \
3635
--results-directory "$RESULTS_DIR" \

.github/actions/run-dotnet-tests/run-win.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Write-Host "📋 Target frameworks: $($tfms -join ', ')"
2929

3030
foreach ($tfm in $tfms) {
3131
Write-Host "🧪 $tfm ..."
32-
# --timeout ensures test session exits properly (workaround for MTP shutdown bug)
3332
dotnet test --project $ProjectPath -c $Configuration -f $tfm --no-build `
3433
--report-trx --report-trx-filename "testResults-$tfm.trx" `
3534
--results-directory $ResultsDir `

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ jobs:
178178
run: dotnet build --configuration Release --no-restore
179179

180180
- name: "Run Unit Tests"
181-
# --timeout ensures test session exits properly (workaround for MTP Linux shutdown bug)
182181
run: dotnet test --project ./tests/Aspire.Hosting.LocalStack.Unit.Tests/Aspire.Hosting.LocalStack.Unit.Tests.csproj --verbosity normal --configuration Release --no-build -- --timeout 5m
183182

184183
- name: "Setup GitHub Packages Authentication"

.github/workflows/publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: dotnet build --configuration Release --no-restore
5959

6060
- name: "Run Unit Tests"
61-
run: dotnet test ./tests/Aspire.Hosting.LocalStack.Unit.Tests/Aspire.Hosting.LocalStack.Unit.Tests.csproj --verbosity normal --configuration Release --no-build
61+
run: dotnet test --project ./tests/Aspire.Hosting.LocalStack.Unit.Tests/Aspire.Hosting.LocalStack.Unit.Tests.csproj --verbosity normal --configuration Release --no-build -- --timeout 5m
6262

6363
- name: "Print Package Information"
6464
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- Async-first assertion API throughout test suite
2626

2727
### Fixed
28+
2829
- **LocalStack Container Health Check**: Improved cancellation handling during application shutdown
2930

3031
## [9.5.3] - 2025-11-04

0 commit comments

Comments
 (0)