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

publishedabout 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