CLI tool for AI-powered test generation and code coverage enhancement
Top 9.9% on sourcepulse
Qodo-Cover is an AI-powered tool designed to automatically generate unit tests and enhance code coverage for software projects. It targets developers and researchers seeking to streamline testing workflows and improve code quality. The tool offers a practical approach to increasing test coverage by leveraging Large Language Models (LLMs) to create new, qualified tests.
How It Works
Qodo-Cover employs a multi-component system: a Test Runner executes tests and generates coverage reports, a Coverage Parser validates coverage increases, a Prompt Builder crafts LLM inputs from codebase context, and an AI Caller interacts with the LLM for test generation. This approach aims to systematically improve test suites by iteratively generating tests that demonstrably increase code coverage, guided by LLM intelligence.
Quick Start & Requirements
pip install git+https://github.com/qodo-ai/qodo-cover.git
or download standalone binaries.OPENAI_API_KEY
environment variable, a Cobertura XML code coverage report (e.g., from pytest-cov
with --cov-report=xml
). Python and Poetry are required for development from source.cover-agent --source-file-path <path> --test-file-path <path> --project-root <path> --code-coverage-report-path <path> --test-command <command> --test-command-dir <dir> --coverage-type <type> --desired-coverage <int> --max-iterations <int>
.templated_tests/
directory.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The tool currently focuses on unit tests and requires a Cobertura XML report. While supporting multiple languages and LLMs, advanced scenarios and broader test generation pains are still under development according to the roadmap.
1 month ago
1 day