Unlock The Power Of TDD

Published on by

Unlock The Power Of TDD image

TDD stands for test-driven development, a coding approach that focuses on testing. Before you write any code for your app, you will start with a test. It is quite a challenging approach initially, but it gives you much more than just more tests.

Test-Driven development has become my preferred way of programming, and I want to show you why in my latest video course PEST Driven Laravel.

Why is TDD so hard to learn?

There are a few reasons for that. First, test-driven development is more than just a coding pattern; it is a coding approach and a mindset that requires a lot of practice and experience. Especially at the beginning, it is hard to write tests before you write the actual implementation. You need to understand what you will build and how you will create it. Without that clear vision, you will re-write your tests many times, which won't be efficient anymore.

But also, testing and TDD are topics that are often taught in a problematic way. It took me many years to become efficient and comfortable in those topics because I tried to learn from over-complicated resources that didn't fit my learning process. For example, who has ever needed a unit test about multiplying two numbers? This is not how you should start learning to test.

I want to share with you what I have learned about testing in a way I would have tried to learn it myself: a practical, modern, and easy-to-follow approach.

Hello PEST Driven Laravel

In this video course, I will teach you to write applications that are fully tested and a joy to work with now and in the future through TDD. Tests are the base for writing code that is easy to change, refactor and maintain. There is no reason to be afraid to touch your own code. Following test-driven development establishes the mindset that integrates testing and refactoring in your daily workflow.

With PEST Driven Laravel, we will build a complete application together from start to finish. It is called "LaravelCasts" and will be a video course platform. Our users will see our provided video courses, and they can buy them and watch the videos in a member's area.

The application will be built with Laravel and PEST through test-driven development. PEST is an elegant PHP testing framework that sits on top of PHPUnit and provides a modern way of testing with excellent developer experience. I also love how perfectly well it plays together with Laravel. It is my starting point for every new project.

In addition, we will use Laravel Livewire for our video player, and I will also show you how to test your Livewire components thoroughly.

We will also work with external services like a payment provider and Twitter to handle payments and send some automagical tweets about our courses.

So here is what you will learn while we build this application:

  • Building a Laravel app from scratch
  • Testing a Laravel app
  • Testing with the test framework PEST
  • Working with Laravel Livewire
  • Handling external services
  • Building everything through TDD

And you will learn all of this along the way while we build our application. So this will be a very practical video course where I teach by showing and not telling. I'm sure you will love it!

Get a 15% Discount with Laravel News Today

Use the coupon code "PDL-❤️-LARAVEL-NEWS" to get a 15% discount on PEST Driven Laravel today. Just visit the course at https://pestdrivenlaravel.com/.

Not convinced yet? Fair enough, here are two example videos for you from the course:

I Am Your Teacher

Hi! My name is Christoph Rumpel, and I'm a web developer from Vienna. For the last ten years, I have been working as a backend developer using PHP and Laravel daily.

Since 2018 I've been operating independently as a freelancer, consultant, and teacher. In the last years, I have released the video courses PEST Driven Laravel, Mastering PhpStorm, and Laravel Core Adventures.

I love coding, teaching, surfing, and bouldering. If you have any questions, don't hesitate to get in touch with me on Twitter.

Christoph Rumpel photo

Christoph Rumpel is a web developer from Vienna. For the last eight years, he has been working as a backend developer using PHP and Laravel daily.

Since 2018 Christoph is operating on his own as a freelancer, consultant, and teacher. Next, to his first ebook about building chatbots in PHP, he is also the author of Laravel Core Adventures and the Mastering PhpStorm video course.

Christoph loves coding, teaching, surfing, bouldering, and his Nintendo Switch.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Laravel Idea for PhpStorm logo

Laravel Idea for PhpStorm

Ultimate PhpStorm plugin for Laravel developers, delivering lightning-fast code completion, intelligent navigation, and powerful generation tools to supercharge productivity.

Laravel Idea for PhpStorm
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $2500/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate logo

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate

Build your SaaS application in hours. Out-of-the-box multi-tenancy and seamless Stripe integration. Supports subscriptions and one-time purchases, allowing you to focus on building and creating without repetitive setup tasks.

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate
JetShip - Laravel Starter Kit logo

JetShip - Laravel Starter Kit

A Laravel SaaS Boilerplate and a starter kit built on the TALL stack. It includes authentication, payments, admin panels, and more. Launch scalable apps fast with clean code, seamless deployment, and custom branding.

JetShip - Laravel Starter Kit
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB

The latest

View all →
Streamlining Route Parameters in Laravel Using URL Defaults image

Streamlining Route Parameters in Laravel Using URL Defaults

Read article
Flexible Docker Images with PHP INI Environment Variables image

Flexible Docker Images with PHP INI Environment Variables

Read article
Dynamic Form Validation in Laravel with prohibited_if image

Dynamic Form Validation in Laravel with prohibited_if

Read article
Add Approvals to Your Laravel Application image

Add Approvals to Your Laravel Application

Read article
Enhancing Data Processing with Laravel's transform() Method image

Enhancing Data Processing with Laravel's transform() Method

Read article
Get Xdebug Working With Docker and PHP 8.4 in One Minute image

Get Xdebug Working With Docker and PHP 8.4 in One Minute

Read article