Test Generation
Qodo Gen leverages advanced AI technology to generate comprehensive tests for any programming language.
Test generation boosts productivity, enhances code quality and simplifies the development process, helping you deliver reliable, high-performance software with ease.
Key Features
Universal Language Support
Qodo Gen proudly offers test generation capabilities for all programming languages, ensuring every developer can benefit from automated test creation.
Initiating Test Generation
Initiating test generation is straightforward, with multiple entry points to suit your workflow. All test generation activities converge in the advanced panel, where behaviors are analyzed, and tests are crafted. Generate tests with:
Qodo Gen Test Lens: Click the "Qodo Gen: test" lens button appearing above every function, class, or method.
Context Menu: Right-click on any selected code or component name and select "Qodo Gen - Test this component" from the context menu.
Command Palette (In VSCode): Highlight the desired code, open the command palette, and execute "Qodo Gen: Generate tests."
Qodo Gen Button (In JetBrains): Click on the Qodo Gen icon located near every identifiable component.
Refining Your Test Suite
Qodo Gen doesn't stop at generating tests. It offers an array of features for refining and customizing your test suite:
Example Tests: Guide the style of your generated tests by providing Qodo Gen with an example test.
Context Awareness: Qodo Gen gathers context from your code to generate relevant and accurate tests.
Running and Auto-fixing Tests: Validate and automatically fix your tests with Qodo Gen's run and auto-fix feature, available for certain supported languages.
Running Tests
Qodo Gen integrates directly with your development environment to offer a streamlined process for running tests. This feature, available for Python, JavaScript, and TypeScript, enables you to:
Run and Auto-Fix Tests: Automatically run generated tests with the option for Qodo Gen to attempt fixes on failing tests, enhancing efficiency by iteratively improving test success rates.
Manual Test Execution: Choose to manually run tests without auto-fix interventions, providing you with direct insight into test outcomes.
Configuration
Tailor Qodo Gen's test generation to your project's needs through the Configuration tab, and continuously improve the test generation process by providing feedback on generated tests.
Last updated