Skill / SKILL.md

Generate Python Runnability Test

google/adk-recipes

Generates a lightweight `tests/test_runnability.py` for a Python recipe. The test just imports the recipe's agent module and asserts that `root_agent is not None` (and `app is not None` if the module defines one). The skill parses agent.py with `ast` to figure out which import-time side effects need mocking (`vertexai.init`, `google.auth.default`) and which env vars need setting (`GOOGLE_CLOUD_PROJECT`, `INTEGRATION_TEST`), and only emits the boilerplate the recipe actually needs. Runs in dry-run (report + preview) and apply (write to disk) modes. Use when the user wants to "add a runnability test", "generate test_runnability.py", "create a smoke test for the recipe", or fix the missing-required-file failure from `python-validate-recipe.yml`.
3 views 10,699 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Generates a lightweight `tests/test_runnability.py` for a Python recipe. The test just imports the recipe's agent module and asserts that `root_agent is not None` (and `app is not None` if the module defines one). The skill parses agent.py with `ast` to figure out which import-time side effects need mocking (`vertexai.init`, `google.auth.default`) and which env vars need setting (`GOOGLE_CLOUD_PROJECT`, `INTEGRATION_TEST`), and only emits the boilerplate the recipe actually needs. Runs in dry-run (report + preview) and apply (write to disk) modes. Use when the user wants to "add a runnability test", "generate test_runnability.py", "create a smoke test for the recipe", or fix the missing-required-file failure from `python-validate-recipe.yml`.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/google/adk-recipes' skill-source

Use the complete skill-source/.agents/skills/generate-python-runnability-test directory with your client’s skill installer.

  • .agents/skills/generate-python-runnability-test

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory .agents/skills/generate-python-runnability-test

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
08b53573305a1e2249671f03f101769dede320ca37ecdd71fd003a1cdcbaf6ce
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills