PHPackages                             quotevelocity/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. [Testing &amp; Quality](/categories/testing)
4. /
5. quotevelocity/novaunit

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

quotevelocity/novaunit
======================

Unit testing suite for Laravel Nova, built to extend PHPUnit

6.1(1mo ago)967.6k—2.4%6[1 PRs](https://github.com/qvelocity/NovaUnit/pulls)1MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI failing

Since Sep 13Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/qvelocity/NovaUnit)[ Packagist](https://packagist.org/packages/quotevelocity/novaunit)[ Docs](https://github.com/qvelocity/novaunit)[ RSS](/packages/quotevelocity-novaunit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (14)Versions (9)Used By (1)

NovaUnit
========

[](#novaunit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/89b8b15ca1c25cf1206b19fcbd215455e61da52b53982536467f5c2837bada01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f71756f746576656c6f636974792f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/quotevelocity/novaunit)

[![Total Downloads](https://camo.githubusercontent.com/3d930d5065411a9c7604bcf279a749c6639d6bc2bf51e2a4e367ff5e1ba0f2cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f71756f746576656c6f636974792f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joshgaber/novaunit)

[NovaUnit](https://joshgaber.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.

NovaUnit is a fork of the brilliant original package by [Josh Gaber](https://github.com/joshgaber) which has been updated to support the latest versions of Laravel and Nova.

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

[](#installation)

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

```
composer require --dev quotevelocity/novaunit
```

### General Requirements

[](#general-requirements)

- PHP 8.2 or higher
- [Laravel](https://laravel.com/) 11.x - 13.x
- [Laravel Nova](https://nova.laravel.com/) 5.x
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) 9.x - 12.x

### Nova 4

[](#nova-4)

As there were some breaking changes in Nova 4 to Nova 5, you should select the 4.x version of NovaUnit:

```
composer require --dev quotevelocity/novaunit:4.*
```

Nova &lt; 4
-----------

[](#nova--4)

For older projects (Laravel &lt; 9, Nova 2 or 3) please see the legacy project: [`joshgaber/novaunit`](https://github.com/joshgaber/NovaUnit) instead.

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://joshgaber.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 rob *at* `quotevelocity`.com instead of using the issue tracker.

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

[](#created-by)

- [Josh Gaber](https://github.com/joshgaber) (Creator)

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

56

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~111 days

Recently: every ~139 days

Total

6

Last Release

53d ago

Major Versions

4.0.1 → 5.0.02025-02-06

5.1.0 → 6.02026-02-03

PHP version history (3 changes)4.0.0PHP ^8.0|^8.1|^8.2

5.0.0PHP ^8.1|^8.2|^8.3|^8.4

6.0PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f0a16ae459cb659d603104dc8a8dec3b527483c1c55b8dba0f0272f06c4dfb6?d=identicon)[robertmarney](/maintainers/robertmarney)

---

Top Contributors

[![joshgaber](https://avatars.githubusercontent.com/u/984970?v=4)](https://github.com/joshgaber "joshgaber (36 commits)")[![robertmarney](https://avatars.githubusercontent.com/u/48888686?v=4)](https://github.com/robertmarney "robertmarney (22 commits)")[![jeffhuys](https://avatars.githubusercontent.com/u/2276233?v=4)](https://github.com/jeffhuys "jeffhuys (7 commits)")[![lonnylot](https://avatars.githubusercontent.com/u/656791?v=4)](https://github.com/lonnylot "lonnylot (5 commits)")[![JamesFreeman](https://avatars.githubusercontent.com/u/916500?v=4)](https://github.com/JamesFreeman "JamesFreeman (4 commits)")[![pelmered](https://avatars.githubusercontent.com/u/680058?v=4)](https://github.com/pelmered "pelmered (1 commits)")[![joshua060198](https://avatars.githubusercontent.com/u/54810136?v=4)](https://github.com/joshua060198 "joshua060198 (1 commits)")[![henryavila](https://avatars.githubusercontent.com/u/8429941?v=4)](https://github.com/henryavila "henryavila (1 commits)")[![dmytrosamburskyi](https://avatars.githubusercontent.com/u/204731025?v=4)](https://github.com/dmytrosamburskyi "dmytrosamburskyi (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)")

---

Tags

laravelnovajoshgabernovaunit

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[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)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[encodia/laravel-health-env-vars

Custom check for Spatie's Laravel Health - Ensure every .env variable you need has been set

20143.5k](/packages/encodia-laravel-health-env-vars)

PHPackages © 2026

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