Testing

From XSpoonAi/spoon-awesome-skill · View interactive version

Testing is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. auto-generate pytest scaffolds from python source code.

How to use this skill

Skill file

Unit Test Generator

A high-impact skill that automatically scaffolds pytest test files based on your Python source code. It parses your code structure (classes and functions) and generates corresponding test functions.

Quick Start

# Generate tests for a file
result = await agent.run_tool("generate_tests", file_path="src/calculator.py")
print(result)

Scripts

| Script | Purpose |

|--------|---------|

| generate_tests.py | Analyzes code and generates test files |

Environment Variables

None required. Uses standard library ast.

Best Practices

  1. Use this tool to quickly bootstrap a test suite for legacy code.
  2. The generated tests are scaffolds; you must fill in the assertions!
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.