gessyken / laravel-test-accelerator
A powerful Laravel package to accelerate the development and testing process of your applications
Package info
github.com/gessyken/laravel-test-accelerator
pkg:composer/gessyken/laravel-test-accelerator
Fund package maintenance!
v1.0.0
2025-10-22 18:17 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2026-03-16 15:34:20 UTC
README
A Laravel package that accelerates test development by automatically generating tests, analyzing code coverage, and providing performance insights.
Features
- Automatic Test Generation - Generate unit and feature tests automatically
- Code Coverage Analysis - Analyze test coverage with detailed reports
- Performance Benchmarking - Identify slow tests and performance bottlenecks
- AI Integration - Generate intelligent test cases using AI (OpenAI, Anthropic)
- CLI Commands - Easy-to-use Artisan commands for all features
Installation
composer require gessyken/laravel-test-accelerator --dev
Publish the configuration file:
php artisan vendor:publish --tag="laravel-test-accelerator-config"
Usage
Generate Tests
# Generate tests for a specific file
php artisan test:generate app/Models/User.php
# Generate tests for a directory
php artisan test:generate app/Services/
# Use AI to generate smarter tests
php artisan test:generate app/Models/User.php --ai
Analyze Coverage
# Basic coverage analysis
php artisan test:coverage
# Generate HTML report
php artisan test:coverage --report
# Set minimum threshold
php artisan test:coverage --threshold=80
Performance Benchmark
# Analyze test performance
php artisan test:benchmark
# Custom thresholds
php artisan test:benchmark --slow-threshold=2000 --memory-threshold=2048
Configuration
Add these variables to your .env file for AI features:
TEST_ACCELERATOR_AI_PROVIDER=openai
TEST_ACCELERATOR_AI_API_KEY=your_api_key_here
TEST_ACCELERATOR_AI_MODEL=gpt-4
Requirements
- PHP 8.4+
- Laravel 12+
- Composer 2+
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
Author
Aurel KENNE
- GitHub: @gessyken
- Email: gessyken@gmail.com