Skip to content

senthazalravi/TestFox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TestFox ๐ŸฆŠ

AI-Powered Comprehensive Testing for Every Programming Language

VS Code Marketplace OpenVSX License: MIT

The Final Quality Gate in Your Software Development Lifecycle


๐ŸŒŸ What is TestFox?

TestFox is a comprehensive VS Code extension that automatically generates and executes tests across 20+ test categories for applications written in any programming language. It combines rule-based test generation with AI-powered intelligence to ensure your code is production-ready.

โœจ Key Highlights

  • ๐ŸŒ Multi-Language Support: JavaScript, TypeScript, Python, Java, C, C++, Rust, Go, .NET, PHP, Ruby
  • ๐Ÿค– AI-Powered: Use FREE or PAID AI models from 15+ providers
  • ๐Ÿงช 20+ Test Categories: Smoke, Functional, Security, Performance, Accessibility, Backend, Payment, and more
  • ๐Ÿ’ณ Payment Testing: Stripe, PayPal, Braintree integration tests
  • โš™๏ธ Backend Testing: State Integrity, Concurrency, Reliability, Idempotency, Webhooks
  • ๐Ÿ“Š Interactive Reports: Beautiful web-based dashboard with real-time results
  • ๐Ÿ”’ Security Testing: OWASP Top 10 vulnerability detection
  • โ™ฟ Accessibility: WCAG 2.1 compliance checking
  • โšก Performance Optimized: Fast extension activation and instant UI loading

๐Ÿš€ Supported Languages & Frameworks

TestFox automatically detects your project type and generates appropriate tests:

Language Frameworks Build Tools
JavaScript/TypeScript React, Vue, Angular, Next.js, Express, NestJS, Fastify, Svelte npm, yarn, pnpm
Python Django, Flask, FastAPI pip, poetry
Java Spring, Spring Boot Maven, Gradle
C Any Make, CMake
C++ Any Make, CMake, Meson
Rust Actix, Rocket, Axum Cargo
Go Gin, Echo, Fiber go mod
.NET ASP.NET Core, Blazor dotnet
PHP Laravel, Symfony Composer
Ruby Rails, Sinatra Bundler
Kotlin Spring, Ktor Gradle

AI Providers & Models - Comprehensive Support

TestFox integrates with 8 AI providers, giving you access to 300+ AI models from major providers. Choose FREE models or paid options based on your needs.

Quick Setup

Provider Setup Time Authentication Default URL
OpenRouter 2 minutes API Key https://openrouter.ai/api/v1
Google Gemini 1 minute API Key https://generativelanguage.googleapis.com
DeepSeek 1 minute API Key https://api.deepseek.com
Ollama 5 minutes Local http://localhost:11434
LM Studio 5 minutes Local http://localhost:1234
Nvidia NIM 5 minutes API Key http://localhost:8000
Amazon Nova 2 minutes API Key / NOVA_API_KEY https://api.nova.amazon.com/v1
BYO API 1 minute API Key Custom

Free AI Models (No Credit Card Required!)

OpenRouter Models (239+ Available)

Model Provider Best For
Gemini 2.0 Flash Google Recommended - Fast & powerful
DeepSeek R1 DeepSeek Advanced reasoning
Llama 3.3 70B Meta Large context, open source
Qwen 2.5 72B Alibaba Excellent for code
Gemma 2 9B Google Lightweight & efficient
Mistral 7B Mistral AI Fast responses
Phi-3 Mini Microsoft Compact but capable

Direct Provider Models

Model Provider Best For
Gemini 2.0 Flash Google Recommended - Fast & powerful
Nova 2 Lite Amazon Fast and efficient from AWS

Local Models (Self-Hosted)

Model Provider Best For
Any Local Model Ollama Privacy & offline use
Any Local Model LM Studio Custom model hosting
Nvidia Models Nvidia NIM GPU-optimized inference

Premium AI Models

Model Provider Best For
GPT-4o OpenAI Best overall quality
Claude 3.5 Sonnet Anthropic Complex analysis
Grok Beta xAI Fast & versatile
Gemini Pro Google Production workloads
Command R+ Cohere Enterprise features
DeepSeek Pro DeepSeek Advanced capabilities

Authentication Methods

API Key Authentication

  • OpenRouter: Get free key at OpenRouter.ai/keys
  • Google Gemini: Get key at Google AI Studio
  • DeepSeek: Get key at DeepSeek Platform
  • Amazon Nova: Get key at AWS Console OR use NOVA_API_KEY environment variable
  • Nvidia NIM: Get key from your Nvidia NIM deployment
  • BYO API: Use your custom OpenAI-compatible endpoint

Local Authentication

  • Ollama: No authentication required (local)
  • LM Studio: No authentication required (local)

Environment Variable Support

Variable Provider Usage
NOVA_API_KEY Amazon Nova Automatically used if API key not configured
OPENAI_API_KEY BYO API For custom OpenAI-compatible endpoints
OLLAMA_HOST Ollama Custom Ollama server URL

Getting Started with AI

  1. Choose Your Provider: Select from 8 supported providers in TestFox settings
  2. Free Models Available: OpenRouter, Google Gemini, DeepSeek offer free tiers
  3. Local Options: Ollama, LM Studio for offline privacy
  4. Enterprise Options: Amazon Nova, Nvidia NIM for corporate environments
  5. Configure in TestFox: Click "AI Config" in Test Control Center
  6. Select Model: Choose from 300+ available models
  7. Start Generating: Begin AI-powered test creation immediately!

Provider Recommendations

Use Case Recommended Provider Reason
Beginners OpenRouter 239+ models, free tier available
Enterprise Amazon Nova AWS integration, compliance, reliability
Privacy-Focused Ollama Local processing, no data sharing
High Performance Nvidia NIM GPU optimization, speed
Custom Integration BYO API Bring your own endpoint
Google Users Google Gemini Native Google integration
Budget Conscious DeepSeek Excellent free tier, powerful models

Test Categories (20+ Types)

TestFox covers the complete testing spectrum aligned with ISTQB standards:

๐Ÿšฆ Quick Validation

Category Description Status
Smoke Tests Critical path verification โœ… Automated
Sanity Tests Quick focused checks โœ… Automated
Regression Tests Existing features still work โœ… Automated

โš™๏ธ Functional Testing

Category Description Status
Functional Tests Feature behavior validation โœ… Automated
API Tests REST/GraphQL endpoints โœ… Automated
UI/E2E Tests User interface journeys โœ… Automated
Integration Tests Component interactions โœ… Automated
Database Tests Data integrity & CRUD โœ… Automated

๐Ÿ›ก๏ธ Non-Functional Testing

Category Description Status
Security Tests OWASP Top 10, XSS, SQLi โœ… Automated
Performance Tests Response times, metrics โœ… Automated
Load Tests Concurrent users โœ… Automated
Accessibility Tests WCAG 2.1 compliance โœ… Automated

๐Ÿ”ง Backend Testing (10 Categories)

Category Description Status
Idempotency Tests Duplicate request handling โœ… Automated
Webhook Tests Async event ordering โœ… Automated
Concurrency Tests Race condition detection โœ… Automated
State Integrity Tests Data consistency validation โœ… Automated
Reliability Tests Resilience & duplicate handling โœ… Automated
Failure Recovery Tests Partial failure & self-healing โœ… Automated
API Contract Tests Schema validation โœ… Automated
Stability Tests Retry storm protection โœ… Automated
Compliance Tests GDPR deletion propagation โœ… Automated
Observability Tests PII leak detection โœ… Automated

๐Ÿ’ณ Payment Testing (4 Categories)

Category Description Status
Payment Flow Tests Checkout & subscription flows โœ… Automated
Card Validation Tests Luhn algorithm, expiry, CVC โœ… Automated
Security Tests 3D Secure, fraud detection โœ… Automated
Webhook Tests Payment provider webhooks โœ… Automated

๐ŸŽฏ Edge Cases & Boundaries

Category Description Status
Negative Tests Invalid inputs, errors โœ… Automated
Boundary Tests Min/max values โœ… Automated
Edge Case Tests Unusual scenarios โœ… Automated

๐Ÿ‘ค User Account Testing

Category Description Status
Account Creation Registration flows โœ… Automated
Account Security Session management โœ… Automated
Account Lifecycle Full CRUD operations โœ… Automated

๐Ÿ›ก๏ธ Security Testing (OWASP Top 10)

TestFox performs comprehensive security analysis:

  • โœ… SQL Injection - Detects database vulnerabilities
  • โœ… Cross-Site Scripting (XSS) - Input/output sanitization
  • โœ… CSRF Protection - Token verification
  • โœ… Authentication Bypass - Login security
  • โœ… Security Headers - CSP, HSTS, X-Frame-Options
  • โœ… Sensitive Data Exposure - API key leaks, passwords
  • โœ… Session Management - Cookie security
  • โœ… Broken Access Control - Authorization checks

๏ฟฝ Backend Testing Suite

Comprehensive backend validation for distributed systems and APIs:

Test Coverage

Test Type Description Example
Idempotency Duplicate request handling Same payment processed only once
Webhook Ordering Async event sequencing Order: payment_intent.created โ†’ payment_intent.succeeded
Concurrency Race condition detection Two users reserving last inventory item
State Integrity Data consistency validation Order cancellation releases stock
Reliability Resilience testing Duplicate webhook ignored with idempotency key
Failure Recovery Partial failure handling Retry with exponential backoff
API Contract Schema validation OpenAPI spec compliance
Stability Retry storm protection Circuit breaker pattern validation
Compliance Regulatory requirements GDPR deletion propagation
Observability PII leak detection No credit card numbers in logs

๐Ÿ’ณ Payment Testing Suite

Complete payment integration testing for e-commerce applications:

Supported Providers

  • Stripe - 3D Secure, webhooks, idempotency
  • PayPal - Checkout, subscriptions, disputes
  • Braintree - Hosted fields, vault, fraud protection

Test Coverage

Test Type Description
Card Validation Luhn algorithm, expiry dates, CVC verification
Fraud Detection Velocity checks, AVS, geolocation
3D Secure SCA compliance, challenge flows
Webhooks Signature verification, event ordering
Idempotency Duplicate prevention, key validation
Subscriptions Trial periods, billing cycles, proration
Disputes Chargeback handling, evidence submission

๏ฟฝ Interactive Reports Dashboard

Generate beautiful, interactive web reports with:

  • ๐Ÿ“ˆ Real-time Progress - Live test execution updates
  • ๐Ÿ“Š Category Breakdown - Pie charts and statistics
  • ๐Ÿ”ด Security Findings - Severity levels and recommendations
  • โšก Performance Metrics - Response times visualization
  • ๐Ÿค– AI Insights - Intelligent recommendations
  • ๐Ÿ“„ Export Options - HTML, PDF-ready printing

๐Ÿ”ง Quick Start

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "TestFox"
  4. Click Install

First Run

1. Click the ๐ŸฆŠ TestFox icon in the Activity Bar
2. Click "AI Config" to set up your API key (optional)
3. Click "Analyze Project" to detect your project
4. Click "Generate Tests" to create test cases
5. Click "Run Tests" to execute
6. Click "View Report" for results

๐Ÿ’ป Commands

Command Description
TestFox: Analyze Project Detect project type and structure
TestFox: Generate Tests AI-powered test generation
TestFox: Generate Test Category Generate specific category (Backend, Payment, etc.)
TestFox: Run All Tests Execute all test categories
TestFox: Run Test Category Run specific category
TestFox: Generate Web Report Open interactive dashboard
TestFox: Configure AI Set up AI provider and model
TestFox: MCP Control Open MCP Server control panel
TestFox: Install Browsers Install Playwright browsers
TestFox: Open Test Control Center Open test execution dashboard
TestFox: Pause/Resume/Stop Tests Test execution control

โš™๏ธ Configuration

Configure TestFox in VS Code settings (Ctrl+,):

๐Ÿค– AI Provider Configuration

{
  "testfox.ai.enabled": true,
  "testfox.ai.provider": "openrouter",
  "testfox.ai.model": "google/gemini-2.0-flash-exp:free",
  "testfox.ai.apiKey": "",
  "testfox.ai.baseUrl": "https://openrouter.ai/api/v1"
}

๐Ÿ“‹ Available AI Providers

Provider Value Base URL Authentication
OpenRouter openrouter https://openrouter.ai/api/v1 API Key
Google Gemini google-gemini https://generativelanguage.googleapis.com API Key
DeepSeek deepseek https://api.deepseek.com API Key
Ollama ollama http://localhost:11434 Local
LM Studio lmstudio http://localhost:1234 Local
Nvidia NIM nvidia-nim http://localhost:8000 API Key
Amazon Nova amazon-nova https://api.nova.amazon.com/v1 API Key / NOVA_API_KEY
BYO API byo-api Custom API Key

๐Ÿ”ง Environment Variables

Variable Provider Description
NOVA_API_KEY Amazon Nova Auto-detects Amazon Nova API key
OPENAI_API_KEY BYO API For custom OpenAI-compatible endpoints
OLLAMA_HOST Ollama Custom Ollama server URL

๐ŸŽฏ Model Selection Examples

// OpenRouter (239+ models)
{
  "testfox.ai.provider": "openrouter",
  "testfox.ai.model": "google/gemini-2.0-flash-exp:free"
}

// Amazon Nova
{
  "testfox.ai.provider": "amazon-nova",
  "testfox.ai.baseUrl": "https://api.nova.amazon.com/v1",
  "testfox.ai.model": "nova-2-lite-v1"
}

// Local Ollama
{
  "testfox.ai.provider": "ollama",
  "testfox.ai.baseUrl": "http://localhost:11434",
  "testfox.ai.model": "llama3.1:8b"
}

๐Ÿšช Full Configuration Example

{
  "testfox.ai.enabled": true,
  "testfox.ai.provider": "openrouter",
  "testfox.ai.model": "google/gemini-2.0-flash-exp:free",
  "testfox.ai.apiKey": "your-api-key-here",
  "testfox.ai.baseUrl": "https://openrouter.ai/api/v1",
  "testfox.ai.fallbackModel": "meta-llama/llama-3.1-8b-instruct:free",
  "testfox.browserHeadless": true,
  "testfox.defaultTimeout": 30000,
  "testfox.securityTestLevel": "standard",
  "testfox.performanceThreshold": 3000,
  "testfox.automation.enabled": true,
  "testfox.automation.interval": "1h"
}

๐Ÿ“š ISTQB-Aligned Testing Techniques

TestFox implements industry-standard testing methodologies:

  • โœ… Boundary Value Analysis (BVA)
  • โœ… Equivalence Partitioning
  • โœ… Decision Table Testing
  • โœ… State Transition Testing
  • โœ… Use Case Testing
  • โœ… Error Guessing
  • โœ… Exploratory Testing

๐Ÿ—๏ธ SDLC Integration

TestFox serves as the final quality gate before release:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Software Development Lifecycle               โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  ๐Ÿ“‹ Requirements โ†’ ๐Ÿ’ป Development โ†’ ๐Ÿงช Unit Tests โ†’ ๐Ÿ‘€ Review โ”‚
โ”‚                                                                 โ”‚
โ”‚                            โ†“                                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚                                                            โ”‚ โ”‚
โ”‚  โ”‚              ๐ŸฆŠ TestFox Quality Gate                      โ”‚ โ”‚
โ”‚  โ”‚                                                            โ”‚ โ”‚
โ”‚  โ”‚  โœ“ Smoke โ†’ Functional โ†’ Security โ†’ Performance โ†’ UAT       โ”‚ โ”‚
โ”‚  โ”‚  โœ“ Backend โ†’ Payment โ†’ AI-Powered Analysis                โ”‚ โ”‚
โ”‚  โ”‚  โœ“ 20+ Test Categories    โœ“ Multi-Language Support        โ”‚ โ”‚
โ”‚  โ”‚  โœ“ MCP Servers            โœ“ Interactive Reports            โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                            โ†“                                     โ”‚
โ”‚                      ๐Ÿš€ Release                                 โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”Œ MCP Servers (Model Context Protocol)

TestFox integrates with MCP Servers for AI-powered test automation:

Available MCP Servers

Server Capabilities Command
Playwright MCP Browser automation, E2E tests, visual testing mcpPlaywright
Fetch MCP API testing, HTTP requests mcpFetch
Chrome DevTools MCP Performance analysis, network monitoring mcpChromeDevTools
QA Use MCP Comprehensive QA automation mcpQAUse

MCP Features

  • ๐Ÿค– AI-Powered Test Generation - Generate tests using natural language
  • ๐ŸŽญ Playwright Integration - Automated browser testing
  • ๐Ÿ“ฎ API Testing - REST/GraphQL endpoint validation
  • ๐Ÿ”ง DevTools Analysis - Performance and network insights
  • ๐Ÿš€ One-Click Execution - Run all MCP tests from control panel

๐Ÿ“‹ Requirements

  • VS Code 1.85.0 or higher
  • Node.js 18+ (for test execution)
  • Internet (for AI features - optional)

๐Ÿค Contributing

Contributions are welcome! Please visit our GitHub repository.

GitHub: github.com/senthazalravi/TestFox


๐Ÿ‘จโ€๐Ÿ’ป Author

Developed with โค๏ธ in Stockholm, Sweden


๐Ÿ™ Support the Project

  • โญ Star us on GitHub
  • ๐Ÿ“ Write a review on the VS Code Marketplace
  • ๐Ÿ’ฌ Share with your developer friends
  • ๐Ÿ’ฐ Sponsor our LLM credits and infrastructure

๐Ÿ“„ License

MIT License - see LICENSE file for details.


TestFox ๐ŸฆŠ - The Final Quality Gate

Making software testing intelligent, comprehensive, and accessible to everyone.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors