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

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

ambitionphp/novaunit
====================

Fork of joshgaber/novaunit; Unit testing suite for Laravel Nova, built to extend PHPUnit

3.1.1(2y ago)021.6kMITPHPPHP ^8.0

Since Oct 23Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ddff88901fe95772277efdefb74ba68d41c212f61d4ad6dc2ac369dc688c63a?d=identicon)[ambitionphp](/maintainers/ambitionphp)

---

Top Contributors

[![joshgaber](https://avatars.githubusercontent.com/u/984970?v=4)](https://github.com/joshgaber "joshgaber (36 commits)")[![ambitionphp](https://avatars.githubusercontent.com/u/29292483?v=4)](https://github.com/ambitionphp "ambitionphp (2 commits)")[![henryavila](https://avatars.githubusercontent.com/u/8429941?v=4)](https://github.com/henryavila "henryavila (1 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)")[![pelmered](https://avatars.githubusercontent.com/u/680058?v=4)](https://github.com/pelmered "pelmered (1 commits)")[![dmytrosamburskyi](https://avatars.githubusercontent.com/u/204731025?v=4)](https://github.com/dmytrosamburskyi "dmytrosamburskyi (1 commits)")

---

Tags

laravelnovajoshgabernovaunit

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ambitionphp-novaunit/health.svg)](https://phpackages.com/packages/ambitionphp-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)
