·test-implement-constructor-validation
</>

test-implement-constructor-validation

サービス クラスの署名からコンストラクター検証テストを自動生成します。 新しいサービスのテストを作成したり、フェイルファスト原則を検証したりするときに使用します。 コンストラクターの検証を確実にするか、必要なパラメーターをテストします。分析 __init__ メソッドをサービスし、pytest.raises(ValueError) テストを生成します 必須パラメータごとに。次の Python サービス クラスで動作します 依存性注入パターン。高い自動化の機会 (100 以上のテスト クラス) このパターンを使用してください)。

4インストール·0トレンド·@dawiddutoit

インストール

$npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-constructor-validation

test-implement-constructor-validation のインストール方法

コマンドラインで test-implement-constructor-validation AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-constructor-validation
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: dawiddutoit/custom-claude。

Automatically generate comprehensive constructor validation tests for service classes that follow the fail-fast principle. This skill ensures every required parameter has a corresponding test that validates the service raises ValueError when that parameter is None.

Fixture Exclusion Pattern: Each validation test excludes the fixture for the parameter being tested:

For a complex service with 5 parameters, follow the same pattern as Example 1 above. Create a test class with fixtures for each parameter, a success case test, and one validation failure test for each required parameter. See references/reference.md for detailed pattern analysis and edge cases.

サービス クラスの署名からコンストラクター検証テストを自動生成します。 新しいサービスのテストを作成したり、フェイルファスト原則を検証したりするときに使用します。 コンストラクターの検証を確実にするか、必要なパラメーターをテストします。分析 __init__ メソッドをサービスし、pytest.raises(ValueError) テストを生成します 必須パラメータごとに。次の Python サービス クラスで動作します 依存性注入パターン。高い自動化の機会 (100 以上のテスト クラス) このパターンを使用してください)。 ソース: dawiddutoit/custom-claude。

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-constructor-validation
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-25
更新日
2026-03-11

Browse more skills from dawiddutoit/custom-claude

クイックアンサー

test-implement-constructor-validation とは?

サービス クラスの署名からコンストラクター検証テストを自動生成します。 新しいサービスのテストを作成したり、フェイルファスト原則を検証したりするときに使用します。 コンストラクターの検証を確実にするか、必要なパラメーターをテストします。分析 __init__ メソッドをサービスし、pytest.raises(ValueError) テストを生成します 必須パラメータごとに。次の Python サービス クラスで動作します 依存性注入パターン。高い自動化の機会 (100 以上のテスト クラス) このパターンを使用してください)。 ソース: dawiddutoit/custom-claude。

test-implement-constructor-validation のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-constructor-validation インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/dawiddutoit/custom-claude