PHPackages                             little-green-man/livewire-tests-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. little-green-man/livewire-tests-generator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

little-green-man/livewire-tests-generator
=========================================

Scaffold tests for your Livewire components

01[3 PRs](https://github.com/little-green-man/livewire-tests-generator/pulls)PHP

Since May 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/little-green-man/livewire-tests-generator)[ Packagist](https://packagist.org/packages/little-green-man/livewire-tests-generator)[ RSS](/packages/little-green-man-livewire-tests-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Scaffold tests for your Livewire components
===========================================

[](#scaffold-tests-for-your-livewire-components)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b55b4b27936567a1e5e76839a63b7a9d252376451303bdbf24d66cbf18af93aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6974746c652d677265656e2d6d616e2f6c697665776972652d74657374732d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/little-green-man/livewire-tests-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1e4865997f00650170ddcf417ab1fa6cae1d76d3abda36e7eff138aee344e2ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6974746c652d677265656e2d6d616e2f6c697665776972652d74657374732d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/little-green-man/livewire-tests-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4917da75c8994999103696df332b63d7a9c12157dfbdd09eee92d29eb5f49e21/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6974746c652d677265656e2d6d616e2f6c697665776972652d74657374732d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/little-green-man/livewire-tests-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5b3bc54c61b2ef4cec1503027485833b7b4be4357806012a100d91ade96dc94d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6974746c652d677265656e2d6d616e2f6c697665776972652d74657374732d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/little-green-man/livewire-tests-generator)[![Treeware](https://camo.githubusercontent.com/aef9384539fd5e8ee99698a94694323f0c973fbb7c56096f65c481dac3fed691/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f636f6c6f723d627269676874677265656e266c6162656c3d54726565776172652671756572793d2532342e746f74616c2675726c3d68747470732533412532462532467075626c69632e6f66667365742e6561727468253246757365727325324674726565776172652532467472656573)](https://treeware.earth)

Include this package to scaffold pest tests for your Livewire components. That's it! A literal one-trick pony.

Licence
-------

[](#licence)

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/little-green-man/livewire-tests-generator) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require little-green-man/livewire-tests-generator --dev
```

You can publish the config file with:

```
php artisan vendor:publish --tag="livewire-tests-generator-config"
```

This is the contents of the published config file:

```
return [
    'output-directory' => base_path('tests/Unit/Http/Livewire/'),
];
```

Usage
-----

[](#usage)

```
php artisan generate-livewire-tests
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Elliot Ali](https://github.com/kurucu)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/389f4ae921e5c8ca8aaf09f30ccfed468db187252ef46d30e6dc8ee615cdbba3?d=identicon)[lgm](/maintainers/lgm)

---

Top Contributors

[![kurucu](https://avatars.githubusercontent.com/u/1073323?v=4)](https://github.com/kurucu "kurucu (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/little-green-man-livewire-tests-generator/health.svg)

```
[![Health](https://phpackages.com/badges/little-green-man-livewire-tests-generator/health.svg)](https://phpackages.com/packages/little-green-man-livewire-tests-generator)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
