stabilize tests
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
## Required Reading (treat as read before DOING)
|
||||
- `docs/README.md`
|
||||
- `docs/modules/ci/architecture.md`
|
||||
- `docs/modules/devops/architecture.md`
|
||||
- `docs/operations/devops/architecture.md`
|
||||
- Relevant sprint file(s).
|
||||
|
||||
## Working Agreements
|
||||
|
||||
@@ -134,7 +134,9 @@ run_tests() {
|
||||
|
||||
# Build dotnet test command
|
||||
local cmd="dotnet test \"$proj\""
|
||||
cmd+=" --filter \"Category=$category\""
|
||||
# Exclude HsmIntegration tests: PKCS#11 native library probing hangs
|
||||
# when SoftHSM2 is not installed (see Q4 in SPRINT_20260201_004)
|
||||
cmd+=" --filter \"Category=$category&Category!=HsmIntegration\""
|
||||
cmd+=" --configuration Release"
|
||||
cmd+=" --logger \"trx;LogFileName=$trx_name\""
|
||||
cmd+=" --results-directory \"$results_dir\""
|
||||
|
||||
@@ -74,17 +74,32 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Run Bun analyzer tests
|
||||
run: |
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Bun.Tests" ]; then
|
||||
dotnet test src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Bun.Tests/ --verbosity normal
|
||||
fi
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: '2.1.4'
|
||||
|
||||
- name: Run Node analyzer tests
|
||||
- name: Run all language analyzer tests
|
||||
run: |
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Node.Tests" ]; then
|
||||
dotnet test src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Node.Tests/ --verbosity normal
|
||||
EXIT_CODE=0
|
||||
for test_dir in src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.*.Tests; do
|
||||
if [ -d "$test_dir" ]; then
|
||||
echo "=== Running tests in $(basename "$test_dir") ==="
|
||||
if ! dotnet test "$test_dir/" --verbosity normal; then
|
||||
echo "FAILED: $(basename "$test_dir")"
|
||||
EXIT_CODE=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# Also run the shared Lang.Tests project
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Tests" ]; then
|
||||
echo "=== Running tests in StellaOps.Scanner.Analyzers.Lang.Tests ==="
|
||||
if ! dotnet test "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Tests/" --verbosity normal; then
|
||||
echo "FAILED: StellaOps.Scanner.Analyzers.Lang.Tests"
|
||||
EXIT_CODE=1
|
||||
fi
|
||||
fi
|
||||
exit $EXIT_CODE
|
||||
|
||||
fixture-validation:
|
||||
name: Validate Test Fixtures
|
||||
|
||||
Reference in New Issue
Block a user