Sign in Go Pro

Testing Fundamentals of Flutter

Lesson 22: Using golden files to verify pixel-perfect widgets

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

With widget tests, you can use golden files to compare your user interface against a predefined image: if the image generated in tests is the same as the one you are comparing with, your test will pass; if there is a difference in those images, even if it is a single pixel, your tests will fail.

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>

Lessons in Testing Fundamentals of Flutter

1. Lesson 1: What is the difference between unit testing, widget testing, and integration testing?
02:28
Jorge Coca
GDE
2. Lesson 2: Writing your first unit test
01:58
Jorge Coca
GDE
3. Lesson 3: Running your tests from the terminal
00:39
Jorge Coca
GDE
4. Lesson 4: The structure of a good test
01:31
Jorge Coca
GDE
5. Lesson 5: Using expect() in your tests
00:56
Jorge Coca
GDE
6. Lesson 6: All you need to know about Matchers
Pro
01:28
Jorge Coca
GDE
7. Lesson 7: Grouping your tests using the group() function
Pro
01:14
Jorge Coca
GDE
8. Lesson 8: Testing code that throws an Error or an Exception
Pro
01:23
Jorge Coca
GDE
9. Lesson 9: Sharing code between tests with setUp() and tearDown()
Pro
00:56
Jorge Coca
GDE
10. Lesson 10: Testing Futures
Pro
01:18
Jorge Coca
GDE
11. Lesson 11: Testing Streams
Pro
00:58
Jorge Coca
GDE
12. Lesson 12: Writing your first widget test
Pro
02:12
Jorge Coca
GDE
13. Lesson 13: The difference between pumpWidget(), pump() and pumpAndSettle()
Pro
02:36
Jorge Coca
GDE
14. Lesson 14: Finding a widget in your widget tree using CommonFinders
Pro
00:34
Jorge Coca
GDE
15. Lesson 15: Interacting with your widgets using WidgetTester
Pro
00:53
Jorge Coca
GDE
16. Lesson 16: Verifying your widget tests using a Matcher from flutter_test
Pro
01:08
Jorge Coca
GDE
17. Lesson 17: Testing smaller widgets in isolation
Pro
02:04
Jorge Coca
GDE
18. Lesson 18: Controlling the behavior of your dependencies using mockito
Pro
01:20
Jorge Coca
GDE
19. Lesson 19: Stubbing synchronous methods with mockito
Pro
01:15
Jorge Coca
GDE
20. Lesson 20: Stubbing asynchronous methods using mockito
Pro
02:11
Jorge Coca
GDE
21. Lesson 21: Verifying interactions with mockito
Pro
00:27
Jorge Coca
GDE
22. Lesson 22: Using golden files to verify pixel-perfect widgets
Pro
01:55
Jorge Coca
GDE
23. Lesson 23: Collecting code coverage from your tests
Pro
01:28
Jorge Coca
GDE
24. Lesson 24: Running integration tests with flutter_driver
Pro
04:17
Jorge Coca
GDE
25. Lesson 25: Taking automated screenshots of your application
Pro
01:58
Jorge Coca
GDE
26. Lesson 26: Running your tests on Github Actions
Pro
02:38
Jorge Coca
GDE
27. Lesson 27: Using Codemagic for your CI/CD needs
Pro
01:37
Jorge Coca
GDE