Learn how to test LiveView effectively so you can deploy your production code with peace of mind.
LiveView is an amazing tool for building interactive applications. It has changed my approach to building rich UIs completely.
But testing LiveView apps requires us to learn how to use a new set of tools. And as with all new tools, we need to learn how to wield them well.
But it also makes it easy to write specious tests — tests that seem correct but actually fail to test large portions of our LiveView code. Those tests mislead us into thinking our app is covered, but production is completely broken! 😱
That's why I not only teach the mechanics of writing LiveView tests (the how) but also how not to write LiveView tests. What's more, I teach the logic behind why we write tests in specific ways so you're ready to apply the same logic in your own application.
Each lesson is crafted from my experience testing LiveView applications in the wild and refined by my ten years of experience practicing test-driven development.
Once I teach you how to think about writing LiveView tests, you'll be able to apply the same logic to other testing challenges you face in the real world.
You'll learn to write fast, robust, and easy-to-maintain LiveView tests — the kind of tests that give you confidence when deploying to production.
As a software developer, I know how difficult it is to keep up with all the latest tools with limited time.
But so many programming courses don't give you a good return on your time investment. You sit through hundreds of hours of materials that you soon forget and never apply at work. Or worse, the course is so long you never even finish it! 🤦
That's why I've taken a lot of time to distill each lesson into its essence. There are no fillers or fluff.
We'll cover everything you need to know. From fundamentals to mastery.
Learn the basics of setting up a LiveView test, rendering the LiveView, and making an assertion.
Let's get more precise about what we expect from LiveView's UI.
Test interactivity from the perspective of the user. We'll learn to target elements, click them, and expect responses users can see.
Learn how to write tests that can handle asynchronous assigns! We cover the naive approach, followed by the best approach, and we even consider how to test failure cases.
Tests can sometimes fail in mysterious ways. Learn how to inspect our LiveView tests so we can get unstuck.
Learn how to test (and how not to test) the bread and butter of the web: forms.
LiveView's forms are interactive. Learn how to test dynamic form changes.
Phoenix is all in on components. Learn what to test (and what not to test) when it comes to function components.
Learn how to test LiveComponents, including which parts to test directly and which to test through the parent LiveView.
LiveView has different ways of navigating across pages. Let's learn how to test that navigation (whether it's from LiveView to LiveView or LiveView to non-LiveView).
Learn to test live patches. I'll share my unique approach (not even included in LiveView's docs) on how to test that same code with less coupling!
LiveView comes with wonderful uploads previews out of the box! Learn how to use the helpers needed to ensure the previews are working correctly!
Learn to test LiveView uploads when we're uploading them directly to our servers.
And learn to test uploads when we're uploading them to the cloud!
Of course, we don't always retain what we learn perfectly.
In those cases, it's helpful to come back to the source to reinforce what we've learned. But that can be tough with videos. Will you have to watch everything again?
You can certainly do that if you want. But it's faster to skim and search text. That's why each lesson includes detailed summaries so you can always find what you need quickly.
It's a golden reference for testing LiveView!
Access to the source code with detailed commits
Comment on any lesson along with other Elixirists
Detailed notes for all videos to quickly reference anything without having to scrub through the video
Suggest topics for future videos
Get 5 simultaneous sessions for your team with a single shared login (such as email@example.com)
Everything from the individual license
Share that login with your team guilt-free!
Going into this I thought $100 is a bit much, but now I can see how much work went into this making it all simple and easy to understand.
Totally worth it.
You've struck a great balance between showing how to write tests and application without getting sidetracked with other app details. You've upgraded my skills. Thanks again!
This was the biggest instructive course I've learned in my elixir journey. Thank you so much for all your efforts
Hot damn! This was a thorough, amazing and thoughtfully organized course! Amazing work. Much respect.
I can't thank you enough for the course! It's allowed me to get comfortable with Elixir and Phoenix LiveView quickly as my career shifted from data science (C++, Python, R) to web-app testing & development.
That's a fair question.
I truly believe this course will teach you how to test LiveView effectively. But, hey, I've been wrong before. 🤷
That's why I offer my Learn to test guarantee!
If you don't learn how to test LiveView by the time you finish the course, I will give you a full refund.
If you don't learn, I don't earn.
So, what do you have to lose? Get the course now!
Can’t find the answer you’re looking for?
I'm a software developer who's been practicing test-driven development for a decade.
For the past six years, I've been helping clients deal with slow test suites, intermittent failures, difficult test cases, and more.
Testing is my passion. I love thinking about it, iterating on practices, and figuring out how to write tests that are valuable, stable, and easy to maintain.