PHPackages                             jamesfreeman/novaunit - 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. jamesfreeman/novaunit

ActiveLibrary

jamesfreeman/novaunit
=====================

Unit testing suite for Laravel Nova, built to extend PHPUnit

4.1.0(1y ago)127.6k↓50%3[2 PRs](https://github.com/JamesFreeman/NovaUnit/pulls)MITPHPPHP ^8.0

Since Apr 12Pushed 1y agoCompare

[ Source](https://github.com/JamesFreeman/NovaUnit)[ Packagist](https://packagist.org/packages/jamesfreeman/novaunit)[ Docs](https://github.com/jamesfreeman/novaunit)[ Fund](https://ko-fi.com/JoshGaber)[ Patreon](https://www.patreon.com/joshgaber)[ RSS](/packages/jamesfreeman-novaunit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

NovaUnit
========

[](#novaunit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a657c62797a5a0cd16d1b33b6a0723ec2a448b3842ae971fbb1bf6579f0de4c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616d6573667265656d616e2f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joshgaber/novaunit)[![Total Downloads](https://camo.githubusercontent.com/db4b9e1a844e7ea07c41cd276bb5014428815e27885b6efc5398aa51411903aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616d6573667265656d616e2f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jamesfreeman/novaunit)

[NovaUnit](https://jamesfreeman.github.io/NovaUnit) is a unit-testing package for Laravel Nova, built using PHPUnit. NovaUnit provides you with assertions for Nova Actions, Lenses and Resources, so you can create great administration panels with confidence.

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

[](#installation)

You can install the package in your Laravel Project via composer:

```
composer require --dev jamesfreeman/novaunit
```

### Requirements

[](#requirements)

- PHP 8.0 or higher
- [Laravel](https://laravel.com/) 6.x - 11.x
- [Laravel Nova](https://nova.laravel.com/) 4.x - 5.x
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) 8.5.x - 11.x

Usage
-----

[](#usage)

To access the test classes, import and use the base test traits:

```
class ClearLogsTest extends TestCase {
    use NovaActionTest;
}
```

Once you've created the mock with the initial test class, you can begin testing different aspect of the component:

```
$this->novaAction(ClearLogs::class)
    ->assertHasField('since_date');
```

For a list of available methods, see the [full docs site](https://jamesfreeman.github.io/NovaUnit).

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Created By
----------

[](#created-by)

- [Josh Gaber](https://github.com/joshgaber) (Creator)
- [James Freeman](https://github.com/jamesfremean) (Maintainer)

Contributors
------------

[](#contributors)

- [Joshua Lauwrich Nandy](https://github.com/joshua060198)
- [nicko170](https://github.com/nicko170)
- [Henry Ávila](https://github.com/henryavila)
- [Peter Elmered](https://github.com/pelmered)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~240 days

Total

2

Last Release

517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec91a132adca26899c1956976241f647e2f8bae33f5eae97d2f6c57d2f1a392?d=identicon)[JamesFreeman](/maintainers/JamesFreeman)

---

Top Contributors

[![joshgaber](https://avatars.githubusercontent.com/u/984970?v=4)](https://github.com/joshgaber "joshgaber (36 commits)")[![JamesFreeman](https://avatars.githubusercontent.com/u/916500?v=4)](https://github.com/JamesFreeman "JamesFreeman (14 commits)")[![joshua060198](https://avatars.githubusercontent.com/u/54810136?v=4)](https://github.com/joshua060198 "joshua060198 (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![nicko170](https://avatars.githubusercontent.com/u/9477420?v=4)](https://github.com/nicko170 "nicko170 (1 commits)")[![dmytrosamburskyi](https://avatars.githubusercontent.com/u/204731025?v=4)](https://github.com/dmytrosamburskyi "dmytrosamburskyi (1 commits)")[![pelmered](https://avatars.githubusercontent.com/u/680058?v=4)](https://github.com/pelmered "pelmered (1 commits)")[![henryavila](https://avatars.githubusercontent.com/u/8429941?v=4)](https://github.com/henryavila "henryavila (1 commits)")

---

Tags

laravelnovajoshgabernovaunit

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jamesfreeman-novaunit/health.svg)

```
[![Health](https://phpackages.com/badges/jamesfreeman-novaunit/health.svg)](https://phpackages.com/packages/jamesfreeman-novaunit)
```

###  Alternatives

[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[naoray/nova-json

Nova json field to spread a json column throughout multiple fields.

37478.6k](/packages/naoray-nova-json)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)

PHPackages © 2026

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