Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
phpunit-conventions
ntm-dev/laravel-monitor
claude-code
phpunit
testbench
testing
test-isolation
refresh-database
queries-recorder

How to run and maintain PHPUnit tests in this repo (ntm-dev/laravel-monitor). Use whenever writing, editing, or running tests, or after changing code that has test coverage.

Install
php artisan boost:add-skill ntm-dev/laravel-monitor

Save this content to: .claude/skills/phpunit-conventions/SKILL.md

# PHPUnit Conventions

This package uses PHPUnit (not Pest) — `tests/` contains plain PHPUnit test classes bootstrapped
via Orchestra Testbench (`tests/TestCase.php`).

- After changing a test, run just that one first:
  `./vendor/bin/phpunit --filter=testName` or `./vendor/bin/phpunit tests/Path/To/Test.php`.
- Don't remove tests or test files without approval — they're not scratch/helper files.
- Once the related test(s) pass, run the full suite before calling anything done:
  `composer test` (= `phpunit`). It's fast (~18 tests currently), so there's little reason
  to skip it.
- Tests should cover the happy path, failure paths, and edge cases — not just the happy path.
- `tests/TestCase.php::setUp()` explicitly flushes the Monitor buffer and purges storage
  before each test, because the Queries recorder captures RefreshDatabase's own migration
  queries otherwise. Don't remove that without understanding why it's there.

PHPUnit Conventions

This package uses PHPUnit (not Pest) — tests/ contains plain PHPUnit test classes bootstrapped via Orchestra Testbench (tests/TestCase.php).

  • After changing a test, run just that one first: ./vendor/bin/phpunit --filter=testName or ./vendor/bin/phpunit tests/Path/To/Test.php.
  • Don't remove tests or test files without approval — they're not scratch/helper files.
  • Once the related test(s) pass, run the full suite before calling anything done: composer test (= phpunit). It's fast (~18 tests currently), so there's little reason to skip it.
  • Tests should cover the happy path, failure paths, and edge cases — not just the happy path.
  • tests/TestCase.php::setUp() explicitly flushes the Monitor buffer and purges storage before each test, because the Queries recorder captures RefreshDatabase's own migration queries otherwise. Don't remove that without understanding why it's there.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource