Ray as a debugging companion in busy integration tests
– myray.app - submitted by Spatie
How to use Ray as a debugging companion in busy integration tests
Read more [myray.app]
Posts tagged with testing
– myray.app - submitted by Spatie
How to use Ray as a debugging companion in busy integration tests
Read more [myray.app]
– world.hey.com - submitted by Tony Messias
A new package by Mior called Workbench lets us set up an example Laravel app inside our packages. This Workbench app can serve as documentation of how the package integrates with a Larave app. Plus, we can use the Workbench models, controllers, routes, etc., in our package's tests and quickly run the Workbench app in the browser!
Read more [world.hey.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
In this post, you'll learn how Ray can help you preview emails in your local environment and how it can simplify the process of developing and testing email workflows in Laravel.
Read more [myray.app]
Learn how to automatically clear Ray's screen when running a test
Read more [myray.app]
In this blog post, I'd like to show the easiest way to skip tests conditionally in tests. Using the simple technique, which can be used for other things besides skipping tests, you can make your tests much more flexible.
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Read more [localheinz.com]
The release of Pest v2 is right around the corner. Pest creator Nuno Maduro and the rest of the Pest team are currently working hard improving the docs ahead of the Pest v2 release somewhere later this month.
In this blog post, I'd like to share the free videos I've created for each of the amazing features.
A good intro on how to customize PHPUnit
Read more [localheinz.com]
Laravel 9 introduced a new way to create custom validation rules: invokable rules. It allows you to write a custom validation rule with only one method: __invoke.
A nice use case for tap
Read more [stefrouschop.nl]
Here's how you can make sure that all implementations of an interface behave correctly
Read more [www.kai-sassnowski.com]
Let's take a look at the different ways to generate a random number in PHP.
Read more [php.watch]
– doeken.org - submitted by Doeke Norg
It's time to replace your mocked event dispatchers with a real one.
Read more [doeken.org]
– tighten.com - submitted by Jamison Valenta
If you're running a Laravel application in the 5's, have a legacy application bootstrapped inside Laravel, don't have any tests, or are staring in silent terror at just how long ago your production server's PHP version hit its end-of-life, this post is for you!
Read more [tighten.com]
– stefanzweifel.io - submitted by Stefan Zweifel
Ever needed to work with an SDK and wished you could use Http::fake() in your Laravel tests?
This blog post explains how you can achieve this for the Facebook Business SDK using the Adapter pattern.
Read more [stefanzweifel.io]
A cool new package made by Luke Downing
Read more [downing.tech]
– www.juststeveking.uk - submitted by Steve McDougall
I get asked about API response testing a lot, how should you do it, and where to start. I have a general rule when it comes to testing APIs, and that rule is: "test your code, and your code only". What do I mean by this? Let me explain:
Read more [www.juststeveking.uk]
A couple of months I go I had the honour giving a talk at the GPUG usergroup on how to convert a PHPUnit testsuite to Pest.
Nowadays, I use Pest as the default testrunner for every package / project that I start.
– barryvanveen.nl - submitted by Barry van Veen
I made a script to easily take consistent measurements using Apache Benchmark. It includes an easy way to compare multiple measurements in a visual way.
Read more [barryvanveen.nl]
Getting started with testing is not that hard. Here's a free video taken from the Testing Laravel course that will show you how you can make sure you homepage works.
Read more [spatie.be]