PHPackages                             vortechron/nightwatch-testing - 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. vortechron/nightwatch-testing

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

vortechron/nightwatch-testing
=============================

Laravel package for testing Nightwatch monitoring events with comprehensive variations

v1.1.0(5mo ago)07MITPHPPHP ^8.2

Since Jan 13Pushed 5mo agoCompare

[ Source](https://github.com/vortechron/nightwatch-testing)[ Packagist](https://packagist.org/packages/vortechron/nightwatch-testing)[ RSS](/packages/vortechron-nightwatch-testing/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (9)Used By (0)

Nightwatch Testing
==================

[](#nightwatch-testing)

A Laravel package for testing [Laravel Nightwatch](https://nightwatch.dev) monitoring events with comprehensive variations.

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

[](#installation)

### Local Development (Path Repository)

[](#local-development-path-repository)

Add the package to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "./packages/nightwatch-testing"
        }
    ],
    "require-dev": {
        "vortechron/nightwatch-testing": "@dev"
    }
}
```

Then run:

```
composer update vortechron/nightwatch-testing
```

### Via Packagist (Coming Soon)

[](#via-packagist-coming-soon)

```
composer require --dev vortechron/nightwatch-testing
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=nightwatch-testing-config
```

This will create a `config/nightwatch-testing.php` file with the following options:

```
return [
    // User model for notification testing
    'user_model' => 'App\\Models\\User',

    // Internal endpoints to test
    'internal_endpoints' => [
        'success' => [
            ['method' => 'GET', 'path' => '/health', 'description' => 'Health check'],
        ],
        'redirect' => [
            ['method' => 'GET', 'path' => '/settings', 'description' => 'Settings redirect'],
        ],
        'client_error' => [
            ['method' => 'GET', 'path' => '/api/user', 'expected_status' => [401, 403]],
        ],
    ],

    // Mail test recipients
    'mail' => [
        'to' => 'nightwatch-test@example.com',
        'cc' => 'nightwatch-cc@example.com',
    ],

    // Outgoing request test URL
    'outgoing_request_url' => 'https://httpbin.org',
];
```

Usage
-----

[](#usage)

Run all Nightwatch test events:

```
php artisan nightwatch:test
```

### Available Options

[](#available-options)

OptionDescription`--skip-mail`Skip sending test mail`--skip-exception`Skip triggering exception`--skip-requests`Skip outgoing HTTP request tests`--skip-internal-requests`Skip internal API request tests`--skip-failing-job`Skip failing job dispatch`--skip-notifications`Skip notification tests### Examples

[](#examples)

```
# Run all tests
php artisan nightwatch:test

# Skip mail and external requests
php artisan nightwatch:test --skip-mail --skip-requests

# Only test cache and queries
php artisan nightwatch:test --skip-mail --skip-requests --skip-internal-requests --skip-exception --skip-failing-job --skip-notifications
```

Test Events Triggered
---------------------

[](#test-events-triggered)

### Commands

[](#commands)

- Successful command execution
- Unsuccessful command (invalid arguments)

### Database Queries

[](#database-queries)

- Fast queries (count, indexed lookup, limited select)
- Slow queries (with sleep, complex aggregation)

### Cache Operations

[](#cache-operations)

- **WRITE**: `put`, `forever`, `add`
- **HIT**: Multiple `get` calls on existing keys
- **MISS**: `get` on non-existent keys
- **DELETE**: `forget`, cleanup

### Jobs

[](#jobs)

- **PROCESSED**: Successful job dispatch
- **RELEASED**: Job that releases back to queue
- **FAILED**: Job that throws exception

### Notifications

[](#notifications)

- Database notification to first user

### Mail

[](#mail)

- **SENT**: Synchronous mail
- **QUEUED**: Async mail via queue
- **SENT**: Multiple recipients with CC
- **QUEUED**: Delayed mail

### HTTP Requests (Internal)

[](#http-requests-internal)

- 2XX Success endpoints
- 3XX Redirect endpoints
- 4XX Client error endpoints

### HTTP Requests (Outgoing)

[](#http-requests-outgoing)

- 2XX: 200, 201, 204
- 3XX: 301, 302
- 4XX: 400, 401, 403, 404, 422, 429
- 5XX: 500, 502, 503, 504

### Exceptions

[](#exceptions)

- Reported exception via `report()`

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.x or 12.x

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance72

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

8

Last Release

157d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/vortechron-nightwatch-testing/health.svg)

```
[![Health](https://phpackages.com/badges/vortechron-nightwatch-testing/health.svg)](https://phpackages.com/packages/vortechron-nightwatch-testing)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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