file-chart-columnCoverage Report

Enjinx Cover analyzes your code to pinpoint gaps in existing test coverage. It then ensures that every generated or enhanced test adds meaningful value, avoiding redundant or unnecessary tests while improving overall code quality.

Coverage reports provide insights for developers to track progress and understand the impact of new tests.

Get a Coverage Report

  1. Install Enjinx Cover on your existing project venv:

Copy

Copy

pip install git+https://github.com/Codium-ai/cover-agent.git
  1. If your project doesn't have a pyproject.toml file, create one:

Copy

Copy

[tool.poetry]
name = "cover-agent"
version = "0.0.0" # Placeholder
description = "Cover Agent Tool"
authors = ["Enjinx"]
license = "AGPL-3.0 license"
readme = "README.md"
  1. Create a branch in your repository.

  2. cd to your repository root directory.

  3. Run the following command:

Copy

Copy

  1. Alternatively, if you dont want to use poetry, replace poetry run cover-agent-full-repo with:

Copy

Copy

Additional Configuration Options:

  • --test-file [relative path] Enjinx Cover will extend tests in the provided file only.

  • --test-folder [relative path] Enjinx Cover will automatically extend only test files in the provided folder.

  • --max-test-files-allowed-to-analyze The maximum number of test files to analyze. Default is 20.

  • --look-for-oldest-unchanged-test-files Enjinx Cover will sort the test files by the last modified date and analyze the oldest ones first. Use this option to find the test files that are most likely to be outdated, and for multiple runs. Default is False.

Last updated