Metadata-Version: 2.4
Name: voylla
Version: 0.2.1
Summary: AI-powered test case generator for Python, Java, and JavaScript with OpenAI, Anthropic, and Google Gemini support
Author: Voylla
License-Expression: MIT
Project-URL: Homepage, https://github.com/AryanSaxenaa/Voylla
Project-URL: Repository, https://github.com/AryanSaxenaa/Voylla
Project-URL: Issues, https://github.com/AryanSaxenaa/Voylla/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: PyYAML>=6.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: openai>=1.0.0
Requires-Dist: anthropic>=0.7.0
Requires-Dist: google-generativeai>=0.3.0
Requires-Dist: tree-sitter>=0.20.0
Requires-Dist: tree-sitter-python>=0.20.0
Requires-Dist: tree-sitter-javascript>=0.20.0
Requires-Dist: tree-sitter-java>=0.20.0
Dynamic: license-file

# Voylla- Test Case Generator Bot

An AI-powered agent that analyzes code and generates comprehensive test cases for Python, Java, and JavaScript.

• User Guide: https://github.com/AryanSaxenaa/Voylla/blob/main/docs/USER_GUIDE.md
• API Reference: https://github.com/AryanSaxenaa/Voylla/blob/main/docs/API_REFERENCE.md
• Examples: https://github.com/AryanSaxenaa/Voylla/blob/main/examples/README.md

## Voylla is a Published Package https://pypi.org/project/voylla/

## Features

- **Multi-language Support**: Python, Java, JavaScript
- **Comprehensive Test Generation**: Unit, integration, and edge cases
- **Code Analysis**: Detects edge conditions and performance risks
- **Coverage Reports**: Analyzes test coverage gaps
- **Interactive Refinement**: Conversational test case improvement
- **CI Integration**: GitHub Actions support for PR test suggestions

## Project Structure

```
test-generator-bot/
├── src/
│   ├── analyzers/          # Code analysis modules
│   ├── generators/         # Test case generators
│   ├── agents/            # AI agent logic
│   └── integrations/      # CI/CD integrations
├── tests/                 # Project tests
├── examples/              # Example code and generated tests
└── config/               # Configuration files
```

## Quick Start

1. Install from PyPI (recommended):
   ```bash
   pip install voylla
   ```
   Or for local dev: `pip install -r requirements.txt`
2. Set up AI API key (optional but recommended):
   ```bash
   python setup_ai.py
   ```
   Or manually set environment variables:
   ```bash
   export OPENAI_API_KEY="your-api-key-here"
   # OR
   export ANTHROPIC_API_KEY="your-api-key-here"
   # OR
   export GEMINI_API_KEY="your-api-key-here"
   ```
3. Run:
   ```bash
   voylla --file your_code.py
   ```

Examples:
- Python: `voylla -f examples/sample_code.py -l python -o test_output`
- JavaScript (auto): `voylla -f examples/sample_code.js -o test_output`
- Java (auto): `voylla -f examples/Sample.java -o test_output`

## AI Enhancement

The bot supports multiple AI providers for enhanced test generation:

- **OpenAI GPT-4**: Set `OPENAI_API_KEY` environment variable
- **Anthropic Claude**: Set `ANTHROPIC_API_KEY` environment variable
- **Google Gemini**: Set `GEMINI_API_KEY` environment variable
- **Auto-detection**: Will use available provider automatically
- **Mock Mode**: Works without API keys (basic enhancement only)

### Environment Variables

Copy `.env.example` to `.env` and configure:

```bash
# Choose provider: "openai", "anthropic", "gemini", "auto", or "mock"
AI_PROVIDER=auto
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
```
