Enjinx
  • Enjinx
    • What is Enjinx ?
    • Setup and Installation
      • Install on VSCode
      • Install on JetBrains IDEs
      • Subscription Plans
      • Sign in
      • Extension Settings
      • Uninstall Enjinx
    • Enjinx Chat
      • Focus
        • Current File Focus
        • Git Diff Focus
      • Context
        • Add Context
        • Add image as Context
      • Commands
        • /ask
        • /changelog
        • /commit
        • /describe
        • /docstring
        • /enhance
        • /explain
        • /find-on-github
        • /generate-best-practices
        • /help
        • /improve
        • /issues
        • /quick-test
        • /recap
        • /review
        • /test-suite
      • Chat History
      • Model Selection
      • Company Codebase
    • Code Completion
    • Coding Agent
      • Tasks
      • Continuous Code Improvement
    • Test Generation
      • Using Test Generation
      • Behaviors
      • Test Suite
      • Configuration
      • Example Test
      • Context
      • Running Tests
    • Data Sharing
  • Enjinx cover
    • What is Enjinx Cover ?
    • Setup
      • GitHub Action
      • CLI
    • Feature Flags
    • Database Usage
    • Coverage Report
    • Examples
  • Alpha Codium
    • What is Alpha Codium?
    • Setup
    • Usage
      • Configuration
      • Solving Problems
      • Solving the entire dataset
      • Evaluation
    • Technical Q&A
    • Research Paper
    • Examples
Powered by GitBook
On this page
  1. Enjinx cover

Feature Flags

Use Feature Flags to unlock more capabilities of Enjinx Cover.

1. Diff-Based Coverage

Generate tests for changes made between branches, ensuring that new code is thoroughly tested without the need to run the entire test suite again.

  • Options:

    • --diff-coverage: Enables diff-based test generation.

    • --branch=<branch_name>: Specifies a branch for comparison (default: main).

  • Usage:

    Copy

    Copy

    python cover_agent/main.py --diff-coverage --branch=develop

    This example compares the current branch with develop, generating tests for new changes.

  • Note: --diff-coverage cannot be used with --use-report-coverage-feature-flag.

2. Report-Based Coverage

Accept tests if they increase coverage for any file included in the report, regardless of the specific source file.

  • Option:

    • --use-report-coverage-feature-flag: Activate this feature to accept any coverage increase.

  • Usage:

    Copy

    Copy

    python cover_agent/main.py --use-report-coverage-feature-flag

    This example accepts tests that improve coverage anywhere in the report.

  • Note: This flag is mutually exclusive with --diff-coverage.

PreviousCLINextDatabase Usage

Last updated 5 months ago