Taldres/laravel-waitlist

Use esta skill ao escrever, editar, corrigir ou revisar testes de pacotes com Pest 4/5 e Orchestra Testbench, incluindo TDD, testes de funcionalidade, testes unitários, cobertura de tipos, testes de arquitetura, comportamento do workbench, comandos, rotas, configuração, migrações e recursos publicáveis.

O que é laravel-waitlist?

Esta skill fornece um guia completo para desenvolver e manter testes de pacotes Laravel usando Pest 4/5, Orchestra Testbench e o arquivo local `tests/TestCase.php`. Ela estabelece um workflow orientado a TDD, incentivando a escrita do menor teste que falha antes da implementação, cobrindo caminhos felizes, infelizes e casos extremos. A skill recomenda o uso de testes de funcionalidade para comportamento de integração e testes de arquitetura para restrições amplas, com comandos específicos do composer para iteração e validação final. Além disso, inclui anti-padrões importantes para evitar, como remover testes reais do pacote ou manter testes de experimentos temporários. Os exemplos práticos cobrem desde merge de configurações até testes de rotas e comandos com a Testbench, garantindo que o desenvolvedor tenha um roteiro claro para provar o comportamento do pacote antes ou junto com a implementação.

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

Installed? Explore more Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Testes de Pacotes

Objetivo Principal

Provar o comportamento do pacote com Pest 4/5, Orchestra Testbench e a configuração local tests/TestCase.php antes ou junto com a implementação.

Fluxo de Trabalho

  1. Comece com TDD: escreva o menor teste de pacote que falha para o comportamento solicitado, depois implemente a menor mudança que o faz passar.
  2. Cubra caminhos felizes, infelizes e casos extremos quando a funcionalidade tem modos de falha significativos.
  3. Prefira testes de funcionalidade focados para comportamento de integração do pacote e testes de arquitetura para restrições amplas.
  4. Use composer test:unit -- --filter ... durante a iteração, composer test:types quando testes sensíveis a tipos ou código mudaram e composer test antes de finalizar.
  5. Mantenha testes reais do pacote no conjunto e remova apenas testes descartáveis que foram criados explicitamente para experimentos de scaffolding local.

Referências

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

Exemplos

  • Teste de merge e sobrescrita de configuração: afirmar a configuração padrão do pacote e depois sobrescrever o valor da configuração do host no aplicativo Testbench.
  • Teste de ativos publicáveis, migrações, views, arquivos de idioma ou configuração: invocar o comportamento de publicação do fornecedor e afirmar que o caminho de destino existe.
  • Teste de rotas com requisições HTTP da Testbench, comandos com asserções do Artisan, migrações com banco de dados SQLite de teste e comportamento do workbench após composer build quando necessário.

Anti-Padrões

  • Excluir testes reais do pacote por serem inconvenientes.
  • Confiar apenas em testes superficiais quando o comportamento precisa de asserções.
  • Testar detalhes de implementação quando o comportamento observável do pacote está disponível.
  • Manter testes de experimentos de scaffolding descartáveis no conjunto de testes do pacote.

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.

Habilidades Relacionadas