Skip to content

Add phpunit-watcher for improved testing and customization#707

Merged
n0nag0n merged 4 commits into
masterfrom
phpunit-watcher-rework
Jun 24, 2026
Merged

Add phpunit-watcher for improved testing and customization#707
n0nag0n merged 4 commits into
masterfrom
phpunit-watcher-rework

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

This pull request updates the project's test-watching setup to improve reliability and configuration consistency. The main changes involve ensuring the spatie/phpunit-watcher dependency is managed directly by Composer, simplifying the test watcher script, and reordering settings in the phpunit-watcher.yml file for clarity.

Dependency management:

  • Added spatie/phpunit-watcher as a development dependency in composer.json to ensure it is always available and versioned with the project.

Test script simplification:

  • Updated the test-watcher script in composer.json to directly run phpunit-watcher watch, removing the previous logic that attempted to install it globally if missing.

Configuration cleanup:

  • Reordered and regrouped sections in phpunit-watcher.yml for consistency, moving the watch section to the end and ensuring notification and PHPUnit settings are clearly organized. No functional changes, but improves readability and maintainability.

Copilot AI review requested due to automatic review settings June 23, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the project’s PHPUnit watch workflow by managing spatie/phpunit-watcher via Composer (dev dependency), simplifying the Composer script that runs the watcher, and reorganizing the watcher YAML config for readability.

Changes:

  • Add spatie/phpunit-watcher to require-dev so the watcher is installed/versioned with the project.
  • Simplify the test-watcher Composer script to run phpunit-watcher watch directly (no global install fallback).
  • Reorder sections in phpunit-watcher.yml for clearer organization.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
phpunit-watcher.yml Reorders configuration sections for readability (no intended behavior changes).
composer.json Adds spatie/phpunit-watcher as a dev dependency and simplifies the test-watcher script.
.gitignore Ignores .phpunit-watcher.yml (but this can unintentionally hide local overrides that take precedence).

@n0nag0n n0nag0n merged commit f20f1d2 into master Jun 24, 2026
41 of 42 checks passed
@n0nag0n n0nag0n deleted the phpunit-watcher-rework branch June 24, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants