Files
hakorune/tools/smokes/v2/README_CLAUDE_REMINDER.md
Selfhosting Dev c0978634d9 feat: using system完全実装+旧スモークテストアーカイブ完了
 using nyashstd完全動作(ChatGPT実装)
- builtin:nyashstd自動解決
- 環境変数不要でデフォルト有効
- console.log等の基本機能完備

 Fixture plugin追加(テスト用最小構成)
 v2スモークテスト構造への移行
 旧tools/test/smoke/削除(100+ファイル)

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 21:45:27 +09:00

2.0 KiB
Raw Blame History

🚨 Claude用リマインダーここが正しい場所

スモークテストは必ずここv2構造に作る

やってはいけないこと

# 旧場所に作らない!
tools/new_smoke.sh              # ❌ ダメ
tools/test_something_smoke.sh   # ❌ ダメ

正しい作成場所

# プロファイル別に配置
tools/smokes/v2/profiles/quick/feature_name/test.sh      # 1-2分テスト
tools/smokes/v2/profiles/integration/feature_name/test.sh # 5-10分テスト
tools/smokes/v2/profiles/full/feature_name/test.sh       # 完全テスト

📁 現在の構造

v2/
├── profiles/
│   ├── quick/
│   │   ├── using/        # using systemテスト
│   │   │   ├── named_packages.sh
│   │   │   └── minimal_test.nyash
│   │   ├── boxes/        # Box関連テスト
│   │   └── core/         # コア機能テスト
│   ├── integration/
│   └── full/
├── configs/              # テスト設定
│   └── using_tests.conf
└── run.sh               # 統一エントリポイント

🎯 新しいテスト追加時の手順

  1. まず適切なprofile/ディレクトリを選ぶquick/integration/full
  2. 機能名のサブディレクトリを作る
  3. テストスクリプトまたは.nyashファイルを配置
  4. configs/に設定ファイルを追加(オプション)

📝新機能「foo」のテスト追加

# Step 1: ディレクトリ作成
mkdir -p tools/smokes/v2/profiles/quick/foo/

# Step 2: テスト作成
cat > tools/smokes/v2/profiles/quick/foo/basic.sh << 'EOF'
#!/usr/bin/env bash
# Foo feature smoke test
echo "Testing foo feature..."
EOF

# Step 3: 実行権限
chmod +x tools/smokes/v2/profiles/quick/foo/basic.sh

# Step 4: 実行
./tools/smokes/v2/run.sh --profile quick --filter "foo:*"

覚え方「スモークはv2プロファイル別🚀