Quality Assurance & Testing
Laravel Rust Testing
Testing apps built with Laravel for Rust (the laravel-rust crate, 0.1.x) with #[laravel::test]. Use when writing, reviewing or fixing tests — fakes for the queue, mail, events, notifications, the HTTP client and storage; acting_as and real logins; authorization; response, Inertia, validation and error assertions; database assertions; factories; jobs, commands, workflows and background tasks; time travel. Each rule shows a test that passes while the app is broken, fails for the wrong reason or is flaky (a dropped fake, acting_as hiding a broken logout, assert_valid passing on a 500, a lenient Inertia assertion, an unawaited database assertion, an unasserted job, stacked fakes, the sync queue running delayed jobs at once) and the test to write. Every example compiles against laravel-rust 0.1.4, and the main claims were tested on that version. Complements the testing skill a new app ships; for writing app code use laravel-rust-best-practices.
- Publisher / source
- AsyrafHussin/agent-skills (found on skills.sh)
- Upstream record
- AsyrafHussin/agent-skills
- Version
- Version 1
- Published
- Publication review
- Approved for publication
- Content fingerprint
49c314e58f57d8b8f220c33020e1111ad67f84c3030d80fdc0e9b0949570b830