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

Abandoned → [quotevelocity/novaunit](/?search=quotevelocity%2Fnovaunit)Library[Testing &amp; Quality](/categories/testing)

joshgaber/novaunit
==================

Unit testing suite for Laravel Nova, built to extend PHPUnit

3.1.0(3y ago)63376.5k↓24%24[1 issues](https://github.com/joshgaber/NovaUnit/issues)MITPHPPHP ^8.0CI failing

Since Jun 1Pushed 9mo ago4 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (19)Used By (0)

Warning

Thank you to everyone who has supported, downloaded and contributed to NovaUnit over the years. **This repository is no longer maintained**, and has been moved to . Big shout out to @robertmarney and the team at @qvelocity for continuing this project!

NovaUnit
========

[](#novaunit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6567511012e3c559c03e8830a20fc0ebf20740f703dffaafe97d9aa61ef88ee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f736867616265722f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joshgaber/novaunit)[![Code Coverage](https://camo.githubusercontent.com/01d2084e1b06c99732556d16430677d6d79bf1a044853c58777a337740d8e477/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f736867616265722f6e6f7661756e69742f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/joshgaber/novaunit/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/09a1cb79a5deb7f3e414cb601e3bf8df2e92eb9213d62d9b7a0e31f581f0c980/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f736867616265722f6e6f7661756e69742f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/joshgaber/novaunit/)[![Total Downloads](https://camo.githubusercontent.com/7f1c48635bd1f3a4979eb067684c6ae72dbb82a00d333cc30a2695e27590a164/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f736867616265722f6e6f7661756e69742e7376673f7374796c653d666c61742d737175617265)](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.

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

[](#installation)

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

```
composer require --dev joshgaber/novaunit
```

### Requirements

[](#requirements)

- PHP 7.3 or higher
- [Laravel](https://laravel.com/) 6.x - 10.x
- [Laravel Nova](https://nova.laravel.com/) 2.x - 4.x
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) 8.5.x - 10.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://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  instead of using the issue tracker.

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

[](#created-by)

- [Josh Gaber](https://github.com/joshgaber) (Creator &amp; 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

48

—

FairBetter than 95% of packages

Maintenance40

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 86% 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 ~83 days

Recently: every ~91 days

Total

13

Last Release

1183d ago

Major Versions

1.1 → 2.02020-09-08

1.2 → 2.12020-10-11

2.3 → 3.02022-04-06

PHP version history (4 changes)1.0PHP ^7.2

2.0PHP ^7.3

2.2PHP ^7.3 || ^8.0

3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6679026d45c677b1b0c94724075aa8ac25605b3f0bdb5be4df13a51ceff54c2?d=identicon)[joshgaber](/maintainers/joshgaber)

---

Top Contributors

[![joshgaber](https://avatars.githubusercontent.com/u/984970?v=4)](https://github.com/joshgaber "joshgaber (37 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)")[![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)")

---

Tags

laravelnovajoshgabernovaunit

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[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)

PHPackages © 2026

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