feat(utils): add global test runner and helper help

This commit is contained in:
2025-09-12 10:19:47 +08:00
parent 9ff736e11c
commit 6d9993cd9f
14 changed files with 199 additions and 325 deletions

View File

@@ -1,36 +0,0 @@
#!/bin/bash
set -e
echo "🧪 執行測試: {{NUMBER_PAD}}-{{NAME_SLUG}}"
echo "=========================="
pushd "$(dirname "$0")" >/dev/null
echo "📋 C# 測試結果:"
if (cd ../csharp && dotnet build >/dev/null 2>&1); then
if dotnet test --logger "console;verbosity=minimal" >/dev/null 2>&1; then
echo "✅ C# 測試通過"
else
echo "❌ C# 測試失敗"
fi
else
echo "❌ C# 編譯失敗"
fi
echo ""
echo "📋 Go 測試結果:"
if (cd ../go && go build >/dev/null 2>&1); then
if go test -v >/dev/null 2>&1; then
echo "✅ Go 測試通過"
else
echo "❌ Go 測試失敗(顯示詳細)"
go test -v
fi
else
echo "❌ Go 編譯失敗"
fi
popd >/dev/null
echo ""
echo "📊 測試完成!"