TestTeller CLI Command Reference

Complete reference for all TestTeller CLI commands, parameters, and usage examples.

Global Options

All commands support these global options:

Core Commands

testteller configure

Interactive configuration wizard to set up TestTeller

testteller configure [OPTIONS]

Options:

Examples:

# Full interactive configuration
testteller configure

# Quick Gemini setup
testteller configure --provider gemini

# Configure automation settings only
testteller configure --automator-agent

Features:


testteller ingest-docs

Ingest documents into knowledge base for test generation

testteller ingest-docs PATH [OPTIONS]

Arguments:

Supported Formats: PDF, DOCX, XLSX, MD, TXT

Options:

Examples:

# Ingest single document with enhanced parsing
testteller ingest-docs requirements.pdf --collection-name my_project --enhanced

# Ingest directory with custom chunk size
testteller ingest-docs ./documentation --chunk-size 1500 --collection-name project_docs

# Simple ingestion with defaults
testteller ingest-docs api-spec.docx --collection-name api_tests

Features:


testteller ingest-code

Ingest code repositories or local codebases for context

testteller ingest-code SOURCE_PATH [OPTIONS]

Arguments:

Options:

Examples:

# Ingest GitHub repository
testteller ingest-code https://github.com/owner/repo.git --collection-name project_code

# Ingest local codebase
testteller ingest-code ./src --collection-name local_code

# Keep GitHub repo after ingestion
testteller ingest-code https://github.com/owner/repo.git --no-cleanup-github

Supported Languages: Python, JavaScript, TypeScript, Java, Go, Rust, C++, C, C#, Ruby, PHP

Features:


testteller generate

Generate strategic test cases using RAG-enhanced AI

testteller generate QUERY [OPTIONS]

Arguments:

Options:

Examples:

# Generate API integration tests
testteller generate "API integration tests for user authentication" --collection-name my_project --output-format pdf

# Generate comprehensive test suite
testteller generate "End-to-end user journey tests covering registration, login, and checkout" --collection-name ecommerce --num-retrieved 10

# Generate security tests
testteller generate "Security tests for input validation and access control" --collection-name security_docs --output-file security_tests.md

Test Types Generated:

Features:


testteller automate

Generate executable automation code from test cases

testteller automate INPUT_FILE [OPTIONS]

Arguments:

Options:

Supported Frameworks:

Language Frameworks
Python pytest, unittest, playwright, cucumber
JavaScript jest, mocha, playwright, cypress, cucumber
TypeScript jest, mocha, playwright, cypress, cucumber
Java junit5, junit4, testng, playwright, karate, cucumber

Examples:

# Generate Python pytest automation
testteller automate test-cases.docx --language python --framework pytest --collection-name my_project

# Interactive TypeScript Playwright tests
testteller automate requirements.pdf --language typescript --framework playwright --interactive --enhance

# Java JUnit5 with comprehensive context
testteller automate test-scenarios.xlsx --language java --framework junit5 --num-context 10 --output-dir ./java_tests

# Enhanced generation with specific LLM
testteller automate api_tests.md --language python --framework playwright --enhance --llm-provider openai

RAG Context Discovery: The automator performs 9 specialized queries to discover:

  1. API endpoints and schemas
  2. UI patterns and selectors
  3. Authentication flows
  4. Data models and validation rules
  5. Existing test patterns
  6. Similar test implementations
  7. Configuration patterns
  8. Error handling patterns
  9. Integration patterns

Generated Output:


testteller status

Check collection and system status

testteller status [OPTIONS]

Options:

Examples:

# Check specific collection
testteller status --collection-name my_project

# Check default collection
testteller status

Displays:


testteller clear-data

Clear ingested data from collections

testteller clear-data [OPTIONS]

Options:

Examples:

# Clear specific collection with confirmation
testteller clear-data --collection-name old_project

# Force clear without confirmation
testteller clear-data --collection-name temp_data --force

# Clear default collection
testteller clear-data

Safety Features:


Configuration

Environment Variables

TestTeller uses environment variables for configuration. Run testteller configure to set these up interactively.

LLM Provider Configuration:

LLM_PROVIDER=gemini|openai|claude|llama
GOOGLE_API_KEY=your_gemini_key
OPENAI_API_KEY=your_openai_key  
CLAUDE_API_KEY=your_claude_key
OLLAMA_BASE_URL=http://localhost:11434

ChromaDB Configuration:

CHROMA_DB_HOST=localhost
CHROMA_DB_PORT=8000
CHROMA_DB_USE_REMOTE=false
CHROMA_DB_PERSIST_DIRECTORY=./chroma_data
DEFAULT_COLLECTION_NAME=test_collection

Document Processing:

CHUNK_SIZE=1000
CHUNK_OVERLAP=200
OUTPUT_FILE_PATH=testteller-testcases.md

Provider-Specific Setup

Google Gemini (Recommended):

testteller configure --provider gemini
# Only requires GOOGLE_API_KEY

OpenAI:

testteller configure --provider openai
# Only requires OPENAI_API_KEY

Anthropic Claude:

testteller configure --provider claude
# Requires CLAUDE_API_KEY + embedding provider (Google or OpenAI)

Local Llama:

# Install Ollama first
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama3.2

testteller configure --provider llama
# No API key required, uses local Ollama

Common Workflows

Complete Test Generation Workflow

# 1. Configure TestTeller
testteller configure

# 2. Ingest project documentation
testteller ingest-docs ./requirements --collection-name my_project --enhanced

# 3. Ingest codebase for context
testteller ingest-code ./src --collection-name my_project

# 4. Generate comprehensive test cases
testteller generate "End-to-end user journey and API integration tests" --collection-name my_project --output-format pdf

# 5. Generate automation code
testteller automate testteller-testcases.pdf --language python --framework playwright --interactive --enhance

# 6. Check status
testteller status --collection-name my_project

Quick API Testing Setup

# Ingest API documentation
testteller ingest-docs api-spec.yaml --collection-name api_project

# Generate API tests
testteller generate "REST API testing with authentication and error handling" --collection-name api_project

# Create Python automation
testteller automate testteller-testcases.pdf --language python --framework pytest --enhance

Multi-Language Automation

# Generate tests once
testteller generate "User interface tests" --collection-name ui_project --output-file ui_tests.md

# Create multiple language implementations
testteller automate ui_tests.md --language python --framework playwright --output-dir ./python_tests
testteller automate ui_tests.md --language typescript --framework cypress --output-dir ./ts_tests  
testteller automate ui_tests.md --language java --framework junit5 --output-dir ./java_tests

Tips and Best Practices

Optimal Collection Organization

Document Ingestion Best Practices

Test Generation Tips

Automation Generation Best Practices

Performance Optimization