emaadali/pest-neondb-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

emaadali/pest-neondb-plugin

Composer 安装命令:

composer require --dev emaadali/pest-neondb-plugin

包简介

Pest plugin for isolating Laravel parallel tests with Neon database branches.

README 文档

README

Laravel-focused Pest plugin for isolating parallel test workers with Neon database branches.

Installation

composer require --dev emaadali/pest-neondb-plugin

Usage

In tests/Pest.php:

use function Emaadali\PestNeondbPlugin\usesNeonTestingRootBranch;

usesNeonTestingRootBranch();

Configure your test environment:

NEON_TEST_BRANCHES=true
NEON_API_KEY=...
NEON_PROJECT_ID=...
NEON_PARENT_BRANCH_ID=...
NEON_TEST_BRANCH_TTL_SECONDS=21600

The root schema-only test branch is created once per Pest run and deleted when the parent test process exits. Laravel parallel workers automatically create expiring child branches from that root branch and point the worker database connection at the child branch.

Debugging

Set NEON_TEST_DEBUG=true to write root/worker branch setup details to storage/logs/neon-testing.log.

Set NEON_TEST_DEBUG_DUMP=true to stop immediately after a parallel worker applies its database config and print the resolved values. Sensitive values such as passwords, tokens, and secrets are masked in debug output.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固