dansan/jobboy-test-pack
JobBoy Test Pack shares common testing dependencies across JobBoy repositories. Use it to keep test tooling consistent between projects. Documentation: https://github.com/danielsan80/jobboy-doc/blob/master/doc/jobboy-test-pack.md
Testing facade), making it ideal for JobBoy repositories built on Laravel. Assumes familiarity with Laravel’s testing conventions (e.g., TestCase, Http\Tests\TestResponse).dev dependency without affecting production code. No runtime dependencies or hooks.composer.json. Critical to verify against JobBoy’s composer.json (e.g., Laravel 10 vs. 11, PHP 8.1+).laravel/framework:^10.0, this package must not enforce Laravel 11 dependencies. Risk of dependency conflicts if the package pulls in unneeded Laravel services.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Breaking Changes | High | Pin exact versions in composer.json (e.g., 1.0.0). Avoid ^ or ~ for stability. |
| Test Incompatibility | Medium | Audit JobBoy repositories for conflicting test setups (e.g., custom assertions, factories). |
| Undocumented APIs | High | Review jobboy-doc for hidden assumptions. Add tests to the package to validate behavior. |
| Zero Maintenance | High | Assume untested in production. Plan for forking if critical bugs arise. |
| Dependency Bloat | Medium | Check if the package pulls in unnecessary Laravel services (e.g., laravel/scout). |
spatie/laravel-test-factories, Laravel’s built-in Testing helpers) that could achieve similar goals?createMockJob(), assertJobDispatched()).Tests\TestCase or Http\Tests\TestResponse.jobboy-test-pack:^1.0.0 vs. jobboy:^2.0).dev dependency.JobAssertions with JobBoyTestPack\Assertions).CONTRIBUTING.md and include a deprecation timeline for local alternatives.composer.json in the package repo (implies no version constraints or hidden dependencies).composer.json overrides to enforce version constraints:
"extra": {
"laravel": {
"provide": {
"laravel/framework": "10.0.0"
}
}
}
composer.json of JobBoy repos:
"require-dev": {
"dansan/jobboy-test-pack": "1.0.0" // Pin to exact version
}
assertJobProcessed() with JobBoyTestPack\Assertions::assertJobProcessed().JobBoyTestPack\Factories\JobFactory.laravel/scout), it may bloat test suites or introduce security risks.composer.json with strict version pinning and disable auto-updates:
"config": {
"allow-plugins": {
"dansan/jobboy-test-pack": false
}
}
README.md.JobBoyTestPack\Traits\JobTrait fail with Laravel 11?").How can I help you explore Laravel packages today?