本プロジェクトは、Windows環境でGo 1.22以上を使用してビルド・テストを実行します。
- Go 1.22以上がインストールされていること
- PowerShellが利用可能であること
プロジェクトルートに配置された build.ps1 を使用して、ビルドとテストを実行します。
ビルドスクリプトは以下の実行モードをサポートしています:
all(デフォルト): ビルド、ユニットテスト、結合テストを順次実行unit: ビルドとユニットテストのみ実行integration: ビルドと結合テストのみ実行build-only: ビルドのみ実行(テストは実行しない)
# デフォルト(allモード)で実行
powershell -NoProfile -ExecutionPolicy Bypass -File ./build.ps1
# ユニットテストのみ実行
powershell -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Mode unit
# 結合テストのみ実行
powershell -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Mode integration
# ビルドのみ実行
powershell -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Mode build-onlyビルドによって生成された実行可能ファイルは bin/game-list.exe に配置されます。
- ユニットテスト: テスト関数名に
_Unitサフィックスを含むもの - 結合テスト: テスト関数名に
_Integrationサフィックスを含むもの(tests/integration/フォルダ内に配置)
詳細な要件定義については、prompts/ideas/000-build.md を参照してください。