Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Requirement Test AlignNew to Visual Studio Code? Get it now.
Requirement Test Align

Requirement Test Align

Muzhe Zhou

|
18 installs
| (0) | Free
Align requirements and test cases for your Python projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Requirement Test Align

A Visual Studio Code extension that bridges the gap between requirements and test cases for your Python projects. This extension helps you ensure that all requirements are properly tested and that test cases are traceable back to specific requirements.

Features

  • AI-Powered Analysis: Leverages AI models like GPT-4o-mini to analyze the relationship between requirements and test cases
  • Change-Based Reviews: Focus only on changed files to optimize performance
  • Interactive UI: Dedicated sidebar with intuitive controls for managing alignment
  • Multiple AI Models: Support for different AI models including GPT-4, GPT-4o, GPT-3.5-turbo, DeepSeek-r1, and DeepSeek-v3

Requirements

  • Visual Studio Code version 1.98.0 or higher
  • Python 3.8 or higher installed on your system
  • Internet connection for API communication with AI providers

Installation

  1. Install the extension from the VS Code Marketplace
  2. Configure your API key in the extension settings
  3. Open the Requirement Test Align panel from the activity bar

Extension Settings

This extension contributes the following settings:

  • requirementTestAlign.openaiApiKey: OpenAI API Key for accessing AI models
  • requirementTestAlign.openaiApiHost: Custom OpenAI API host (optional)
  • requirementTestAlign.model: AI model to use (gpt-4o-mini, gpt-4, gpt-4o, gpt-3.5-turbo, deepseek-r1, deepseek-v3)
  • requirementTestAlign.reviewType: Type of review to perform (full, changed, costOptimized)
  • requirementTestAlign.reviewLanguage: Language for generated content (default: English)
  • requirementTestAlign.provider: AI provider to use (currently supports openai)
  • requirementTestAlign.org: Organization ID for OpenAI (optional)
  • requirementTestAlign.testAffected: Generate test cases for affected files only
  • requirementTestAlign.debug: Enable debug logging
  • requirementTestAlign.pythonPath: Path to the Python executable

How to Use

  1. Open your Python project in VS Code
  2. Click the Requirement Test Align icon in the activity bar
  3. Configure your settings, especially the API key
  4. Click "Generate Review" to analyze the relationship between requirements and test cases
  5. Review the results and make necessary adjustments to your code

Workflow

The extension works by:

  1. Analyzing your Python project structure
  2. Identifying requirements in comments, docstrings, and separate requirement files
  3. Finding test cases in test files
  4. Using AI to determine if requirements are properly tested
  5. Generating a report highlighting gaps and recommendations

Commands

  • requirement-test-align.openPanel: Open the Requirement Test Align panel

Supported File Types

  • Python (.py) files for code analysis
  • pytest and unittest test files

Known Issues

  • Large projects may require more processing time
  • API rate limits may apply depending on your OpenAI subscription

Release Notes

0.0.1

  • Initial release
  • Support for basic requirement-test alignment analysis
  • Integration with OpenAI models
  • Custom sidebar UI for interacting with the extension

Privacy and Data Usage

This extension processes your code locally and sends relevant snippets to the configured AI provider for analysis. No code is stored by the extension itself, but standard API provider data retention policies apply. Please review your AI provider's privacy policy for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft