PHPackages                             arthurtavaresdev/pest-plugin-nova - 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. arthurtavaresdev/pest-plugin-nova

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

arthurtavaresdev/pest-plugin-nova
=================================

Pest Plugin for Laravel Nova

0359PHP

Since Feb 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/arthurtavaresdev/pest-plugin-nova)[ Packagist](https://packagist.org/packages/arthurtavaresdev/pest-plugin-nova)[ RSS](/packages/arthurtavaresdev-pest-plugin-nova/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Nova (Pest Plugin)
==========================

[](#laravel-nova-pest-plugin)

[![Author](https://camo.githubusercontent.com/95c784a002f86039cfeec393cf8bef69807d504b4327953b56fc76bb077acf4c/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d617574686f72266d6573736167653d6172746875726162726575303026636f6c6f723d353041424631266c6f676f3d74776974746572267374796c653d666c61742d737175617265)](https://twitter.com/arthurabreu00)[![PHP Version](https://camo.githubusercontent.com/224a05a132f6c5592b1e8328b817bc14a97ebc91f9339d5e67bd4478f9e1d781/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f617274687572746176617265736465762f706573742d706c7567696e2d6e6f76613f636f6c6f723d253233344635423933266c6f676f3d706870267374796c653d666c61742d737175617265)](https://www.php.net)[![Laravel Version](https://camo.githubusercontent.com/ea18c12edb72175e59aba015ab13db2e68fb8c79a9b89a328c648ecdef4c42f0/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d6c61726176656c266d6573736167653d254532253839254135382e3026636f6c6f723d666632643230266c6f676f3d6c61726176656c267374796c653d666c61742d737175617265)](https://laravel.com)[![Laravel Nova](https://camo.githubusercontent.com/d76d2d69ce09d864f3e90e172a4dae73c8f26365f5885c113d40174722c55866/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4e6f7661266d6573736167653d254532253839254135332e3026636f6c6f723d343039396465266c6f676f3d6c61726176656c2d6e6f7661267374796c653d666c61742d737175617265)](https://nova.laravel.com/)

Install
-------

[](#install)

Via Composer

```
composer require --dev arthurtavaresdev/pest-plugin-nova
```

Usage
-----

[](#usage)

Once the plugin is installed you are ready to go! Combine the elegant syntax of [Pest](https://pestphp.com/docs/writing-tests) and [Nova Assertions](https://github.com/dillingham/nova-assertions#usage):

### Assertions

[](#assertions)

For more details about assertions you can check the [original package](https://github.com/dillingham/nova-assertions#usage).

```
beforeEach(function () {
    Order::factory()->count(10)->create();
    $this->be(User::factory()->create());
});

test('index orders')
    ->novaIndex('orders')
    ->assertOk()
    // assert resources
    ->assertResources(fn($resources) => $resources->count() === 10)
    // assert cards
    ->assertCardCount(3)
    ->assertCardsInclude(OrderAmountPerDay::class)
    ->assertCardsInclude(OrderPerMerchant::class)
    ->assertCardsInclude(OrderPerStatus::class)
    // assert actions
    ->assertActionCount(1)
    ->assertActionsInclude(CancelOrderAction::class)
    // assert filters
    ->assertFilterCount(2)
    ->assertFiltersInclude(OrderStatusFilter::class)
    ->assertFiltersInclude(MerchantFilter::class)
    // assert fields
    ->assertFieldsInclude(['id', 'status', 'amount', 'created_at'])
    ->assertFieldsExclude(['external_id', 'currency'])
    // assert policies
    ->assertCanView()
    ->assertCanCreate()
    ->assertCanUpdate()
    ->assertCanDelete()
    ->assertCannotForceDelete()
    ->assertCannotRestore();
    ...
```

### Expectations

[](#expectations)

\[WIP\]

```
    test('can index orders', function () {
       expect($this->novaIndex('orders')
           ->toBeCardsCount(3)
           ->toBeCardInclude(OrderAmountPerDay::class)
   });

    test('can update order', function () {
       expect($this->novaEdit('orders', Order::factory()->create()->id))
           ->toBeField('merchant')
           ->toBeField('shopper')
           ->toBeField('amount')
           ->toBeField('created_at')
           ->toBeField('tags');
   });
});
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Arthur Tavares](https://twitter.com/arthurabreu00)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40744942?v=4)[Arthur Tavares](/maintainers/arthurtavaresdev)[@arthurtavaresdev](https://github.com/arthurtavaresdev)

---

Top Contributors

[![arthurtavaresdev](https://avatars.githubusercontent.com/u/40744942?v=4)](https://github.com/arthurtavaresdev "arthurtavaresdev (19 commits)")

### Embed Badge

![Health badge](/badges/arthurtavaresdev-pest-plugin-nova/health.svg)

```
[![Health](https://phpackages.com/badges/arthurtavaresdev-pest-plugin-nova/health.svg)](https://phpackages.com/packages/arthurtavaresdev-pest-plugin-nova)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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