SkillFeeder › 全部 Skill › Bug与质量 › generate-python-runnability-test

为 Python recipe 自动生成可运行性测试文件

generate-python-runnability-test

generate-python-runnability-test 是 SkillFeeder 收录的Agent Skill,来自 GitHub 仓库 google/adk-recipes,★ 10,586。为 Python recipe 自动生成可运行性测试文件。适合Python recipe 维护者。场景是Bug与质量 · 测试验证。能做的事包括自动识别需 mock 的导入副作用、自动推导需设置的环境变量。打开 GitHub 自行安装。

打开 GitHub

仓库
google/adk-recipes
仓库星标
★ 10,586
场景
Bug与质量 · 测试验证
适合
Python recipe 维护者
类型
Skill

能做什么

原文简介

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_PRO

同场景推荐