Skip to content

Add test + CI scaffolding so new modules start with a suite - #3

Merged
HafizMMoaz merged 1 commit into
masterfrom
feat/test-ci-scaffolding
Jul 18, 2026
Merged

Add test + CI scaffolding so new modules start with a suite#3
HafizMMoaz merged 1 commit into
masterfrom
feat/test-ci-scaffolding

Conversation

@HafizMMoaz

Copy link
Copy Markdown
Member

What

Adds a minimal test setup to the package template so every module cloned from it starts with a green baseline instead of zero tests.

  • orchestra/testbench dev dependency + phpunit.xml
  • tests/ with a Testbench-backed TestCase and two example tests: the service provider boots, and a package route resolves
  • CI now runs vendor/bin/phpunit on push/PR (previously lint-only)
  • .gitignore for vendor/, the lock, and PHPUnit caches

Why

Every new module is generated from this template, so the missing test/CI setup reproduces the no-tests baseline in each one. Fixing it here gives all future modules a suite out of the box.

Verification

composer install && vendor/bin/phpunit locally:

OK (2 tests, 2 assertions)

Closes #2

Every module is generated from this template, so a missing test setup
reproduces the no-tests baseline in each new module. Add a minimal
Testbench-backed PHPUnit suite (service provider boots, a route resolves),
a phpunit.xml, dev deps, and a CI step that runs the suite on push/PR.

Closes #2
@HafizMMoaz
HafizMMoaz requested a review from a team as a code owner July 18, 2026 20:25
@HafizMMoaz
HafizMMoaz merged commit 2ee8a60 into master Jul 18, 2026
2 checks passed
@HafizMMoaz
HafizMMoaz deleted the feat/test-ci-scaffolding branch July 18, 2026 20:30
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.

[package-template] Add test + CI scaffolding so new modules start with a suite

1 participant