profile

Mateus Guimarães

How do you test complex features on your apps? + why Pest is absolutely amazing

Published over 2 years ago • 1 min read

One very common question among people who started testing their stuff is...
"Okay, now what? How do *actually* use this?"

It is fairly easy to teach the basic concepts of testing, but it's really hard to teach people how to leverage testing/TDD to solve complex problems, especially with simple examples.

With that said, there's no better way to teach that than test-driving a feature on a real application. Not a dummy ecommerce or blog, but an actual application that has complex features and complex engineering decisions.

Besides that, I've been using Pest, by Nuno Maduro, for quite awhile now, and I can say that it really "streamlined" my tests and made it quite easier to think about what I wanted to test exactly and what I expected from each of my system's classes/features. An easier syntax does make a difference, and if it's easier, that means you'll test more and more thoroughly. Again, it's not for everyone, but I'm sure most of you will like it.

I could go over and over Pest's coolest features (and I probably will at some point), but the reason I'm sending this e-mail is another:

I've made a video showing how to test-drive complex features using Laravel and Pest. And it's free!

Make sure to watch it by clicking here and, if possible, reply this e-mail with your thoughts about it and any doubts or suggestions.

And yes, it's been a super long time since my last e-mail... but I'm back. I think.

See ya!
Mateus

Mateus Guimarães

Read more from Mateus Guimarães

# On the last few weeks I have seen lots of discussions about speed in the Laravel community (and some other communities, for that matter) and I thought I share a few thoughts here. First, as developers I would say we are always going to think about performance — we want to write good code that is performant. Period. With that said, I also think it is easy to misunderstand where we need to make optimizations and where the problems lie. To be clear, I am thinking of a specific thread that...

over 1 year ago • 3 min read

I was reading some tweets about scaling and how Laravel was a bit behind other frameworks and I remembered I have a cool scaling story to tell. Jack Ellis already wrote a very interesting blog on how Fathom Analytics scaled Laravel, but my story is about different. You're about to read how we scaled to over a hundred million jobs and peaks of 30,000 requests/minute a timespan of only twelve hours, using nothing but Laravel, MySQL and Redis. First, I must give some context: in 2019 I joined a...

almost 2 years ago • 7 min read

Hey there, I'm writing to let you know of my newest project: 30 Days of Laravel. The idea here is to produce 30 short, easily digestible videos that you can watch real quick during your lunch break. They'll teach small tips and tricks on PHP and Laravel, and you might already know some of them, but I'm sure you'll learn new stuff 🙂. The goal is to send an e-mail, every day, for 30 days. It'll include the video, an in-depth explanation and documentation references. I have yet to finish...

over 3 years ago • 1 min read
Share this post