From 3af594960a6ae2c5fcd580d435295b0e205df4fc Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Thu, 30 Oct 2025 22:03:37 +0900 Subject: [PATCH] =?UTF-8?q?test=5Fendpoints.py=20=E3=81=A8=20docs/test=5Fe?= =?UTF-8?q?ndpoints.md=20=E3=82=92=E8=BF=BD=E5=8A=A0:=20API=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3=E3=83=88=E7=B7=8F?= =?UTF-8?q?=E5=90=88=E3=83=86=E3=82=B9=E3=83=88=E3=83=A2=E3=82=B8=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=82=92=E5=AE=9F=E8=A3=85=E3=83=BB=E6=96=87?= =?UTF-8?q?=E6=9B=B8=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新規: src-python/test_endpoints.py を追加。メインループ統合の総合テストモジュールを実装 - /set/data/* の動的値を実行時に /get/data/... から取得して self.config_dict にキャッシュしてから選択する方式を導入 - main_instance の start()/controller.init() 呼び出しと、Watchdog 用の no-op コールバック設定を追加 - main.mapping のすべての status を True に設定してテスト対象を列挙 - /set/enable /set/disable /set/data /run /delete/data の個別テスト実装(single/all/random/specific パターン) - LLM/API 関連(plamo/gemini/openai/lmstudio/ollama 等)のモデルリスト取得・ランダム選択、認証キー/URL 系は期待ステータスに [200,400] を設定 - マイク/スピーカー等の検証(閾値・タイムアウト)で不正値時に期待ステータスを [400] にするバリデーション追加 - 実行系エンドポイント(/run/*)のテスト実装、テスト不能な操作は [401] でスキップ扱い - ランダムアクセステスト(全体/ON-OFF/特定セット)を実装 - 翻訳の総当たりテスト機能と結果を translation_test_results.json に出力 - テスト結果を収集する record_test_result と generate_summary によるサマリー出力を実装 - 実行中のデバッグログ出力やスキップ/エラー時の詳細ログを追加 - 新規: src-python/docs/test_endpoints.md を追加。上記モジュールの目的・使用方法・取得/キャッシュ戦略・対象エンドポイント一覧などを文書化 目的: API エンドポイントの包括的な自動テスト基盤を整備し、動的値取得による安定化・LLM/API の接続挙動検査・ランダム負荷試験を容易にする --- src-python/docs/{details/backend_test.md => test_endpoints.md} | 2 +- src-python/{backend_test.py => test_endpoints.py} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src-python/docs/{details/backend_test.md => test_endpoints.md} (98%) rename src-python/{backend_test.py => test_endpoints.py} (100%) diff --git a/src-python/docs/details/backend_test.md b/src-python/docs/test_endpoints.md similarity index 98% rename from src-python/docs/details/backend_test.md rename to src-python/docs/test_endpoints.md index 9cd03d81..f63596e4 100644 --- a/src-python/docs/details/backend_test.md +++ b/src-python/docs/test_endpoints.md @@ -1,4 +1,4 @@ -# backend_test.py - APIエンドポイントテストモジュール +# test_endpoints.py - APIエンドポイントテストモジュール ## 概要 VRCTアプリケーションのAPIエンドポイントを包括的にテストするためのモジュールです。メインループの各種機能をランダムアクセスでテストし、システムの安定性と堅牢性を検証します。 diff --git a/src-python/backend_test.py b/src-python/test_endpoints.py similarity index 100% rename from src-python/backend_test.py rename to src-python/test_endpoints.py