CommunityProgramación y desarrollogithub.com

Taldres/laravel-waitlist

Usa esta habilidad al escribir, editar, corregir o revisar pruebas de paquetes con Pest 4/5 y Orchestra Testbench, incluyendo TDD, pruebas de características, pruebas unitarias, cobertura de tipos, pruebas de arquitectura, comportamiento de workbench, comandos, rutas, configuración, migraciones y recursos publicables.

¿Qué es laravel-waitlist?

Esta habilidad está diseñada para desarrolladores que trabajan con paquetes Laravel y necesitan probar su comportamiento de manera eficiente usando Pest 4/5 y Orchestra Testbench. Proporciona un flujo de trabajo claro basado en TDD: primero escribir la prueba más pequeña que falle y luego implementar el cambio mínimo que la haga pasar. Cubre pruebas de características, unitarias, de arquitectura y de tipos, asegurando que se prueben caminos felices, infelices y casos límite. Es compatible con el ecosistema de pruebas de Laravel y se integra con scripts de Composer para ejecutar pruebas rápidamente. La habilidad también incluye ejemplos concretos de cómo probar configuraciones, activos publicables, rutas, comandos y migraciones, y advierte sobre anti-patrones comunes como eliminar pruebas reales o mantener pruebas de andamio temporales.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/.agents/skills/package-testing

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Pruebas de Paquetes

Objetivo Principal

Demostrar el comportamiento del paquete con Pest 4/5, Orchestra Testbench y la configuración local de tests/TestCase.php antes o junto con la implementación.

Flujo de Trabajo

  1. Comienza con TDD: escribe la prueba de paquete más pequeña que falle para el comportamiento solicitado, luego implementa el cambio más pequeño que la haga pasar.
  2. Cubre caminos felices, infelices y casos límite cuando la característica tiene modos de fallo significativos.
  3. Prefiere pruebas de características enfocadas para el comportamiento de integración del paquete y pruebas de arquitectura para restricciones amplias.
  4. Usa composer test:unit -- --filter ... mientras iteras, composer test:types cuando cambien pruebas sensibles a tipos o código, y composer test antes de finalizar.
  5. Mantén las pruebas reales del paquete en el conjunto y elimina solo las pruebas desechables creadas explícitamente para experimentos locales de andamio.

Referencias

  • tests/TestCase.php
  • tests/Pest.php
  • tests/Feature/
  • tests/Unit/
  • tests/ArchTest.php
  • Scripts de composer.json

Ejemplos

  • Prueba la fusión y anulación de configuración afirmando la configuración predeterminada del paquete, luego sobrescribe el valor de configuración del host en la aplicación Testbench.
  • Prueba activos publicables, migraciones, vistas, archivos de idioma o configuración invocando el comportamiento de publicación del proveedor y afirmando que la ruta objetivo existe.
  • Prueba rutas con solicitudes HTTP de Testbench, comandos con aserciones de Artisan, migraciones con una base de datos de prueba SQLite y comportamiento de workbench después de composer build cuando sea necesario.

Anti-Patrones

  • Eliminar pruebas reales del paquete porque son inconvenientes.
  • Confiar solo en pruebas de humo cuando el comportamiento necesita aserciones.
  • Probar detalles de implementación cuando el comportamiento observable del paquete está disponible.
  • Mantener pruebas de experimentos de andamio temporales en el conjunto de pruebas del paquete.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

Taldres/laravel-waitlist

Use this skill when reviewing Laravel package compatibility across composer constraints, PHP versions, Laravel versions, Testbench versions, dependency stability lanes, Windows CI, or matrix-sensitive code and workflow changes.

Taldres/laravel-waitlist

Use this skill when creating or updating the bundled Laravel Boost skill under resources/boost/skills from the package implementation and package documentation. Trigger after public APIs, commands, config, routes, views, publish tags, README content, or examples change.

Taldres/laravel-waitlist

Use this skill when preparing Laravel package releases: CHANGELOG.md updates, generated release notes, GitHub release workflows, version checks, tags, release validation, or release automation changes. Never publish autonomously.

Taldres/laravel-waitlist

Use this skill when adding Laravel package capabilities or wiring them through the service provider: commands, migrations, routes, config merges, views, translations, assets, middleware, publish tags, workbench files, or console-only behavior.

Taldres/laravel-waitlist

Integrate taldres/laravel-waitlist in a Laravel application: define purposes, lists and fields, build the signup form, send the confirmation mail from events, add a preference page, and keep consent, retention and encryption intact.

Taldres/laravel-waitlist

Build the pages of a taldres/laravel-waitlist integration: the signup form with the registered wording, and the confirm, unsubscribe and preference pages, either in Laravel controllers (Blade, Livewire, Inertia) or in an SPA or static site over the package's JSON API, including CORS and bot protection.

Taldres/laravel-waitlist

Turn a taldres/laravel-waitlist waitlist into a launch: invite people in batches in signup order, let invited addresses register, announce the launch to everyone who agreed, and erase the list once its purpose is fulfilled.

Taldres/laravel-waitlist

Send the mails of a taldres/laravel-waitlist integration: the double opt-in confirmation, the preference page link, a welcome mail, launch mails and newsletters to the people who agreed, with the right unsubscribe links, one-click headers and a sender per project.

Taldres/laravel-waitlist

Operate a taldres/laravel-waitlist installation: answer access and erasure requests, withdraw a purpose on request, apply retention, erase a list once its purpose is fulfilled, rotate APP_KEY with waitlist:rekey, export a list, and check the setup before going live.

Taldres/laravel-waitlist

Run the waitlists of several products in one Laravel app with taldres/laravel-waitlist projects: define projects, scope facade calls with project(), resolve the project of HTTP signups, send mail per project, handle requests across all projects, or keep projects in a database for a central waitlist API.

Taldres/laravel-waitlist

Keep a newsletter tool such as Brevo, Mailchimp or Mailcoach in step with a taldres/laravel-waitlist waitlist: add confirmed contacts per purpose, remove them on withdrawal and erasure, and carry unsubscribes made at the provider back into the waitlist via a webhook.

Taldres/laravel-waitlist

Build waitlist statistics with taldres/laravel-waitlist: signups and confirmations per day for charts, totals and confirmation rates for a period, the confirmed count on any past day, and how many people are on a list right now, for dashboards, admin pages and API endpoints.

Taldres/laravel-waitlist

Write feature tests for an application's taldres/laravel-waitlist integration: get the plain tokens from events, assert the confirmation and other mails, test the signup, confirm and unsubscribe flows in PHP and over the package's HTTP routes, and bypass rate limits and bot checks in tests.

Skills relacionados