Supported Languages and Frameworks
Early AI is designed to support a wide range of programming languages and testing frameworks, making it versatile and adaptable to your project’s needs. Below is a detailed list of the supported languages and their compatible frameworks.
Supported Languages
1. JavaScript
- Overview: JavaScript is one of the most widely used programming languages for web development, and Early AI is optimized to handle its nuances.
- Compatible Frameworks: Jest, Mocha, Vitest
2. TypeScript
- Overview: TypeScript extends JavaScript with static typing, and Early AI ensures comprehensive test generation tailored to its features.
- Compatible Frameworks: Jest, Mocha, Vitest
3. Python
- Overview: Python is a versatile language popular in data science, machine learning, and web development. Early AI supports Python's testing ecosystem seamlessly.
- Compatible Frameworks: Pytest
Supported Testing Frameworks
1. Jest
- Purpose: A JavaScript testing framework optimized for simplicity and performance.
- Use Case: Ideal for JavaScript and TypeScript projects requiring robust testing for both unit and integration tests.
2. Mocha
- Purpose: A flexible and feature-rich JavaScript testing framework.
- Use Case: Great for JavaScript and TypeScript projects that need customizable and expressive test suites.
3. Vitest
- Purpose: A modern and fast unit testing framework for JavaScript and TypeScript.
- Use Case: Excellent for projects focusing on speed and simplicity in test execution.
4. Pytest
- Purpose: A Python testing framework known for its simplicity and powerful features.
- Use Case: Perfect for Python projects requiring concise test writing and extensive plugin support.
How to Select a Framework
The default testing framework in Early AI is Jest for JavaScript and TypeScript projects. For Python projects, Pytest is automatically set when generating unit tests.
To change the framework for JavaScript or TypeScript projects:
- Open the Settings screen in the extension.
- Navigate to the Testing Framework section.
- Choose your preferred framework from the dropdown: Jest, Mocha, or Vitest.
For Python projects, no configuration is required as Pytest is selected automatically.
Key Benefits of Multi-Framework Support
- Flexibility: Switch between frameworks based on your project requirements.
- Consistency: Maintain the same testing approach across different languages.
- Efficiency: Save time with automated configuration tailored to your selected framework.
Try Early AI Today
Explore the versatility of Early AI with your favorite programming language and testing framework. Download the extension from the VSCode Marketplace and see how it fits into your workflow.
For more details, visit our GitHub repository.