+0
日增长
5,688
stars
573
forks
36
watchers
210
prs
129
issues
50
releases
README
Qodo Cover aims to help efficiently increase code coverage, by automatically generating qualified tests to extend code coverage. Qodo Cover can run in your GitHub CI workflow or locally as a CLI tool.
Table of Contents
News and Updates
Overview
Installation and Usage
Contributing
Documentation
Roadmap
News and Updates
2025-06-15
⚠️ This repository is no longer maintained. Please fork it if you wish to continue development or use it in your own projects.
2024-12-04:
New mode - Run Qodo Cover Pro in your GitHub CI workflow. Currently in preview and available for free for a limited time for Python projects, leveraging your own LLM API key from your favorite LLM provider. It's a practical way to improve code quality and reliability. For more details, reach out to the Qodo team.
2024-11-05:
New mode - scan an entire repo, auto identify the test files, auto collect context for each test file, and extend the test suite with new tests.
See more details here.
Qodo-Cover
Welcome to Qodo-Cover. This focused project utilizes Generative AI to automate and enhance the generation of tests (currently mostly unit tests), aiming to streamline development workflows. Qodo-Cover can run via a terminal, and is planned to be integrated into popular CI platforms.
We invite the community to collaborate and help extend the capabilities of Qodo Cover, continuing its development as a cutting-edge solution in the automated unit test generation domain. We also wish to inspire researchers to leverage this open-source tool to explore new test-generation techniques.
Overview
This tool is part of a broader suite of utilities designed to automate the creation of unit tests for software projects. Utilizing advanced Generative AI models, it aims to simplify and expedite the testing process, ensuring high-quality software development. The system comprises several components:
1. Test Runner: Executes the command or scripts to run the test suite and generate code coverage reports.
2. Coverage Parser: Validates that code coverage increases as tests are added, ensuring that new tests contribute to the overall test effectiveness.
3. Prompt Builder: Gathers necessary data from the codebase and constructs the prompt to be passed to the Large Language Model (LLM).
4. AI Caller: Interacts with the LLM to generate tests based on the prompt provided.
Installation and Usage
Requirements
Before you begin, make sure you have the following:
- OPENAI_API_KEY set in your environment variables, which is required for calling the OpenAI API.
- Code Coverage tool: A Cobertura XML code coverage report is required for the tool to function correctly.
- For example, in Python one could use pytest-cov. Add the --cov-report=xml option when running Pytest.
- Note: We are actively working on adding more coverage types but please feel free to open a PR and contribute to cover_agent/CoverageProcessor.py
If running directly from the repository you will alsoTop issues
#251Misidentification of relevant coverage report causes tests to be thrown away34 comments · 2024-12-18#284if first test in a run doesn't increase coverage, subsequent tests in that run are thrown out11 comments · 2025-02-12#161Branch coverage gets ignored (Request: Support for Branch Coverage)6 comments · 2024-09-21#281[Proposal] Refactor using reasoning models5 comments · 2025-02-10#241[Feature Request] add more programming languages support for repo coverage5 comments · 2024-12-04#192Add support for Kotlin4 comments · 2024-10-23#321Golang test are not getting enclosed within the function3 comments · 2025-04-24#304support for Ruby for full repo mode?2 comments · 2025-02-25
Discussions
#352qodo-cover is featured on Shypd — 80K+ AI tools0 comments · 2026-03-30#347Plan going forward0 comments · 2025-07-25#288Say hello to our little (new) friend…. Anteater0 comments · 2025-02-17#246Instead of openai can we use different local llm's through litellm ?1 comments · 2024-12-06#225I would like to use the professional version.1 comments · 2024-11-18#190How to use custom model in cover-agent?0 comments · 2024-10-21#188Can I use code-agent on a frontend repo?1 comments · 2024-10-17#178What is your metric for coverage?0 comments · 2024-10-06