PHPackages                             codewithdennis/filament-tests - 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. codewithdennis/filament-tests

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

codewithdennis/filament-tests
=============================

A package that creates PEST tests specifically tailored for your filament resources

4.x-dev(3mo ago)1018.1k↓36.8%13[2 issues](https://github.com/CodeWithDennis/filament-tests/issues)[2 PRs](https://github.com/CodeWithDennis/filament-tests/pulls)MITPHPPHP ^8.1CI passing

Since Oct 18Pushed 3mo ago6 watchersCompare

[ Source](https://github.com/CodeWithDennis/filament-tests)[ Packagist](https://packagist.org/packages/codewithdennis/filament-tests)[ Docs](https://github.com/codewithdennis/filament-tests)[ RSS](/packages/codewithdennis-filament-tests/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelogDependencies (11)Versions (9)Used By (0)

Filament Tests
==============

[](#filament-tests)

\[Filament Tests\] - No longer maintained. Upcoming AI tooling with proper rulesets can generate tests quickly, making this redundant.

[![Latest Version on Packagist](https://camo.githubusercontent.com/1bb08cc5bd56725d79960a1b67a7d047dd03beb7444fb986b449f9be6024ea62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64657769746864656e6e69732f66696c616d656e742d74657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codewithdennis/filament-tests)[![Total Downloads](https://camo.githubusercontent.com/4832220ae25e1a7bc55bcffdc85cb610ef9c1bfc5fe4cab75108490016db8120/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64657769746864656e6e69732f66696c616d656e742d74657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codewithdennis/filament-tests)

A package that creates PEST tests specifically tailored for your Filament components.

Caution

This package is not ready yet, use it at your own risk. ⚠️

Note

This package requires that your models define model [factories](https://laravel.com/docs/master/database-testing#defining-model-factories).

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

[](#installation)

```
composer require codewithdennis/filament-tests --dev
```

Usage
-----

[](#usage)

Run the command to generate tests for your Filament resources:

```
php artisan make:filament-test
```

### Command Options

[](#command-options)

The `make:filament-test` command supports the following options:

- `--skip-pint`: Skip running Laravel Pint on generated test files
- `--force`: Overwrite existing test files without confirmation

Available Tests
---------------

[](#available-tests)

This package generates comprehensive PEST tests for your Filament resources. Here's a complete list of currently working tests:

### Form Record Tests

[](#form-record-tests)

- **CanCreateRecordTest** - Tests that a record can be created
- **CanValidateCreateFormTest** - Tests that the create form validates input correctly
    - Max
    - Min
    - Required
- **CanEditRecordTest** - Tests that a record can be edited
- **CanValidateEditFormTest** - Tests that the edit form validates input correctly
    - Max
    - Min
    - Required

### Page Rendering Tests

[](#page-rendering-tests)

- **CanRenderCreatePageTest** - Tests that the create page renders correctly
- **CanRenderEditPageTest** - Tests that the edit page renders correctly
- **CanRenderIndexPageTest** - Tests that the index page renders correctly
- **CanRenderViewPageTest** - Tests that the view page renders correctly

### Page Functionality Tests

[](#page-functionality-tests)

- **HasHeaderActionTest** - Tests that header actions exist
- **ShowsHeaderActionTest** - Tests that a header action is visible
- **HidesHeaderActionTest** - Tests that a header action is hidden

### Table Column Tests

[](#table-column-tests)

- **HasColumnTest** - Tests that the resource has table columns defined
- **CanRenderColumnTest** - Tests that default visible columns render correctly
- **CanNotRenderColumnTest** - Tests that default hidden columns don't render
- **ShowsColumnTest** - Tests that explicitly visible columns are shown
- **HidesColumnTest** - Tests that explicitly hidden columns are hidden
- **CanNotDisplayTrashedRecordsByDefault** - Tests that trashed records are not displayed by default if soft deletes are enabled
- **ColumnHasDescriptionBelowTest** - Tests that columns with descriptions display them below
- **ColumnHasDescriptionAboveTest** - Tests that columns with descriptions display them above
- **SelectColumnHasOptionsTest** - Tests that select columns have the correct options
- **ColumnHasExtraAttributesTest** - Tests that columns with extra attributes render them correctly

### Table Functionality Tests

[](#table-functionality-tests)

- **CanSearchColumnTest** - Tests that searchable columns work correctly
- **CanSearchColumnIndividuallyTest** - Tests that individual column search works correctly
- **CanSortColumnTest** - Tests that sortable columns work correctly
- **CanPaginateRecordsTest** - Tests that pagination works correctly

### Table Filter Tests

[](#table-filter-tests)

- **HasFilterTest** - Tests that a filter exists

### Bulk Action Tests

[](#bulk-action-tests)

- **CanBulkDeleteRecordsTest** - Tests that bulk delete action works correctly

### Setup Tests

[](#setup-tests)

- **BeforeEach** - Sets up common test configuration and data

All tests are automatically generated based on your Filament resource configuration and will only run when the relevant features are present in your resource (e.g., search tests only run if you have searchable columns).

Known Issues
------------

[](#known-issues)

- Validation of RichEditor fields is not supported, this is due to the complexity of handling rich text content in tests.

Credits
-------

[](#credits)

- [CodeWithDennis](https://github.com/CodeWithDennis)
- [Dissto](https://github.com/dissto)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.2% 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.

###  Release Activity

Cadence

Every ~484 days

Total

2

Last Release

94d ago

Major Versions

3.x-dev → 4.x-dev2026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d47a56dfab94e67a7354a146f96a0285c09f6b9d649c558832c6a9b94354b8c?d=identicon)[CodeWithDennis](/maintainers/CodeWithDennis)

---

Top Contributors

[![CodeWithDennis](https://avatars.githubusercontent.com/u/23448484?v=4)](https://github.com/CodeWithDennis "CodeWithDennis (132 commits)")[![dissto](https://avatars.githubusercontent.com/u/11778632?v=4)](https://github.com/dissto "dissto (107 commits)")

---

Tags

filamentlaravelpestpestphpphpplugintest-automationtestingpestlaraveltestsfilamentphp

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/codewithdennis-filament-tests/health.svg)

```
[![Health](https://phpackages.com/badges/codewithdennis-filament-tests/health.svg)](https://phpackages.com/packages/codewithdennis-filament-tests)
```

###  Alternatives

[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k2](/packages/mpociot-laravel-test-factory-helper)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)

PHPackages © 2026

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