CoffeeTesting ☕
Grab a Coffee!
A VS Code extension that automates GitHub Copilot agent mode to achieve 100% unit test coverage for any programming language.
Features
- Multi-language support - Works with Python, JavaScript, TypeScript, C#, Java, Go, Ruby, Rust, and more
- Automatic language detection - Detects your project's language and uses appropriate test commands
- YOLO Mode - Enables auto-approve for Copilot actions (configurable)
- Model selection - Choose which AI model to use for test generation
- Agent Mode - Automatically opens Copilot in agent mode for autonomous operation
- Monitors code coverage and continues until 100% is reached
- Never pushes to remote - all changes are local
Supported Languages
| Language |
Test Framework |
Coverage Tool |
| Python |
pytest |
pytest-cov |
| JavaScript |
Jest / Mocha |
Jest --coverage |
| TypeScript |
Jest / Vitest |
Jest --coverage |
| C# |
xUnit / NUnit / MSTest |
XPlat Code Coverage |
| Java |
JUnit 5 |
JaCoCo |
| Go |
testing |
go test -cover |
| Ruby |
RSpec |
SimpleCov |
| Rust |
built-in |
cargo tarpaulin |
Usage
- Open a source file or folder you want to achieve 100% coverage for
- Run command:
CoffeeTesting: Start (100% Coverage)
- Configure settings when prompted (enables YOLO mode)
- Select the AI model to use
- Choose your target file or folder
- Sit back and enjoy your coffee ☕
Commands
CoffeeTesting: Start (100% Coverage) - Start automated coverage session
CoffeeTesting: Stop Session - Stop the running session
CoffeeTesting: Check Status - Show current session status
CoffeeTesting: Disable YOLO Mode - Restore normal approval flow
How It Works
- Configures VS Code - Enables auto-approve and sets max requests to 10,000
- Detects Language - Automatically identifies the programming language from file extensions
- Builds Prompt - Creates a comprehensive prompt with source code and language-specific instructions
- Opens Agent Mode - Sends the prompt to Copilot in agent mode
- Copilot Iterates - Copilot autonomously writes tests, runs coverage, and repeats until 100%
Safety
- All changes are local only
- No git push operations are performed
- You can stop the session at any time with
Ctrl+Shift+Escape
- Review changes before committing
- YOLO mode can be disabled after the session
Requirements
- VS Code 1.85.0 or higher
- GitHub Copilot extension installed and signed in
- Appropriate test framework and coverage tools for your language
| |