qodo-ai/qodo-cover

Qodo-Cover: An AI-Powered Tool for Automated Test Generation and Code Coverage Enhancement! 💻🤖🧪🐞

What it solves

Qodo Cover는 적격한 유닛 테스트를 자동으로 생성하여 코드 커버리지를 높이도록 설계되었습니다. 테스트를 작성하는 데 필요한 수동 작업을 줄이고, 새로운 테스트가 소프트웨어 프로젝트의 전체적인 테스트 유효성에 실제로 기여하도록 보장합니다.

How it works

이 도구는 생성형 AI (via LiteLLM)를 사용하여 코드베이스를 기반으로 테스트를 생성합니다. 네 가지 주요 구성 요소로 작동합니다:

  1. Test Runner: Executes test scripts and generates coverage reports.
  2. Coverage Parser: Validates that the added tests actually increase code coverage.
  3. Prompt Builder: Collects codebase data to construct prompts for the Large Language Model (LLM).
  4. AI Caller: Interacts with the LLM to generate the actual test code.

Python, Go, Java 등 여러 언어를 지원하며 CLI 도구로 실행하거나 GitHub CI 워크플로우에 통합할 수 있습니다.

Who it’s for

모든 테스트 케이스를 수동으로 작성하지 않고도 테스트 스위트 확장을 자동화하고 코드 신뢰성을 향상시키고자 하는 소프트웨어 개발자 및 DevOps 엔지니어를 대상으로 합니다.

Highlights

  • Multi-language Support: Works with Python, Go, and Java.
  • LLM Flexibility: Supports over 100 LLMs through LiteLLM, including OpenAI, Vertex AI, and Azure OpenAI.
  • Coverage Validation: Specifically parses coverage reports (like Cobertura or Jacoco) to ensure tests are effective.
  • Record & Replay: Includes a mode to record LLM responses to save API credits during repeated runs.
  • CI Integration: Can be run locally or as part of a GitHub CI workflow.