CodeTest AI
An AI-powered VS Code extension for intelligent test case generation and code assistance.

Features
🧪 AI-Powered Test Generation
- Automatically generates up to 10 test cases for your code
- Supports multiple test categories (unit tests, edge cases, performance tests)
- Real-time test generation as you code
- Smart file tracking across editor tabs
💬 AI Chat Interface
- Chat with AI about your code
- Get instant code suggestions and improvements
- Accept or reject code suggestions directly
- Code block support with syntax highlighting
⚡ Quick Actions
- Generate tests with
Ctrl+Shift+T / Cmd+Shift+T
- Run tests with
Ctrl+Shift+R / Cmd+Shift+R
- Accept suggestions with
Ctrl+Shift+A / Cmd+Shift+A
- Reject suggestions with
Ctrl+Shift+X / Cmd+Shift+X
- Open chat with
Ctrl+Shift+C / Cmd+Shift+C
- Debug tests with
Ctrl+Shift+D / Cmd+Shift+D
🎯 Smart Test Management
- Modern tabbed interface
- Test case categorization
- Status indicators (pending/passed/failed)
- Code preview in formatted blocks
- Accept/reject functionality
🔄 Real-Time Updates
- Auto-detection of code changes
- Progress indicators
- Clear error notifications
- Success/failure status for each operation
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "CodeTest AI"
- Click Install
Usage
- Open a code file in VS Code
- Click the CodeTest AI icon in the activity bar
- Choose between Test Cases or AI Chat tabs
- Start generating tests or chatting with AI about your code
Auto-Detection Mode
- Enable auto-detection using the toggle switch
- Tests will be generated automatically as you code
- View real-time status updates in the status bar
- Accept or reject generated tests
Manual Mode
- Select the code you want to test
- Press
Ctrl+Shift+T to generate tests
- Review and modify generated tests
- Run tests with
Ctrl+Shift+R
Requirements
- VS Code version 1.85.0 or higher
- Node.js 18.x or higher
Extension Settings
codetestai.autoDetect : Enable/disable automatic test generation
codetestai.maxTestCases : Maximum number of test cases to generate (default: 10)
codetestai.showStatusBar : Show/hide status bar item
Known Issues
Please report any issues on our GitHub repository.
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
| |