-
Notifications
You must be signed in to change notification settings - Fork 9
[Feat]: Add standard testing scaffolding to the python_skill template #19
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Feature Description
The standard skill generation template in templates/python_skill/ contains a boilerplate skill.py and manifest.yaml, but actively lacks any testing scaffolding. To ensure high-quality community contributions, we must encourage Test-Driven Development (TDD) by default.
Rationale
Without a baseline testing file, contributors are less likely to write tests for their skills before submitting pull requests. A standard boilerplate will significantly speed up the PR review process and ensure skill reliability.
Implementation Idea
- Add a stub
test_skill.pyinto thetemplates/python_skill/directory. - Utilize
pytestto provide a mock execution context for the boilerplate 'weather' or 'hello world' capability. - Ensure the boilerplate test includes assertions that validate the skill's return object strictly matches the output schema defined in its
manifest.yaml.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers