Flutter Testing Guide for Beginners - Part 1: Unit Tests & Setup

  Рет қаралды 119,132

Reso Coder

Reso Coder

2 жыл бұрын

📗 Get the starter project & code snippets👇👇
resocoder.com/flutter-testing...
📧 Get Flutter news 📰 and resources:
👉 flutter.education
👨‍💻 Do you write good code? Find out now!
resocoder.com/good-code-quiz
How can you make sure that an app does exactly what it should do without any weird unexpected surprises? Well, you test it, of course. You could test everything manually by launching the app, using it, and trying your best to make the app blow up with errors. Or you can write a bunch of automated tests, which is arguably a more time-efficient and thorough way to test your apps. Let’s take a look at unit, widget, and integration tests.
Go to my website for more information, code examples, and articles:
● resocoder.com
Follow me on social media:
● / resocoder
● / resocoder
● / resocoder

Пікірлер: 118
@aadarshadhakalg
@aadarshadhakalg 2 жыл бұрын
After so so long, there's finally smile on my face.
@ResoCoder
@ResoCoder 2 жыл бұрын
That's what I like to hear!
@ShivamJha00
@ShivamJha00 2 жыл бұрын
Bruh
@reiniergarcia
@reiniergarcia 3 ай бұрын
Did you eat a beef steak?
@cillipill
@cillipill Ай бұрын
@@reiniergarcia good one 🤣🤣
@pedrol4011
@pedrol4011 2 жыл бұрын
Reso, you are the best! Its a privilege to learn so much from you! Thanks a lot :)
@kobowo
@kobowo 2 жыл бұрын
Thanks a lot for this video. I made it a good refresher in preparation to study the next part you made. I learned unit testing and TDD through your other series. I'd have too say this is more succinct and your explanations have gone better over time! Keep up the good work!
@harveyaptx7356
@harveyaptx7356 2 жыл бұрын
Lots of appreciation for this 💕😍 I've been waiting for it. Really thank you.
@UsamaKarim
@UsamaKarim 2 жыл бұрын
Really amazing to watch best youtube channel for flutter tutorials.. No words can reward your work 💙
@christianmarpert3844
@christianmarpert3844 2 жыл бұрын
fantastic video! Nice dive into flutter and TDD. thks a lot for sharing! Highly appreciated!
@learncodeit
@learncodeit 2 жыл бұрын
Wonderful tutorial as always. Thanks for your efforts.
@dibbo-mrinmoysaha406
@dibbo-mrinmoysaha406 11 ай бұрын
really appreciated how detailed you explained the app and its functionality as well as how to test. Others just assume you know half of the stuff (which is mostly not the case)
@subramaniang683
@subramaniang683 2 жыл бұрын
Thank you so much for this awesome content. Keep doing this good work 🎉
@h3w45
@h3w45 2 жыл бұрын
This is really great, advanced tutorials like this are not usually covered, thank you a lot
@ResoCoder
@ResoCoder 2 жыл бұрын
You're welcome!
@minsikkim437
@minsikkim437 2 жыл бұрын
I recently realized the importance of testing. however, there weren't well-organized advanced Flutter tutorials. I finally found it! Thanks for the video!
@esc4p3EP
@esc4p3EP 2 жыл бұрын
Love how you handle the await for future at the end. Never knew there is a way to both wait and not wait at the same time. Thanks for the tips!
@mangmun001
@mangmun001 2 жыл бұрын
Thanks to you that using Flutter more efficiently, please upload the tutorial more often.
@sayyedaamer9243
@sayyedaamer9243 2 жыл бұрын
Commenting before seeing the video, bcz you just going to save my life, Need the testing video on flutter desperately. I follow your channel and watch you videos and before seeing the video i just say it will be amazing. Thanks alot 👍👍👍
@ResoCoder
@ResoCoder 2 жыл бұрын
🙏
@ibrahimmammadov9669
@ibrahimmammadov9669 2 жыл бұрын
Thanks for these tutorials 🎉 keep up the good work 👍
@opimand
@opimand 2 жыл бұрын
Thanks, man, you are an awesome teacher and developer!
@sangamshrestha143
@sangamshrestha143 2 жыл бұрын
After so long. Nice to see you again.
@DamjanMiloshevski
@DamjanMiloshevski 11 ай бұрын
GREAT TUTORIAL! ONE OF THE BEST ON UNIT TESTING!
@mariamalbarghouti4385
@mariamalbarghouti4385 2 жыл бұрын
welcome back, best wishes. BEST DEVELOPER EVER
@blacksoile
@blacksoile 2 жыл бұрын
Once again for an amazing tutorial, keep it up you are doing an awesome job I can’t wait for part two! Can you tell us how you structure you study when learning something new and where you find the resources e.g. books, documentation, tutorials. Also do you have a must read list of books? Thank you!
@younssaitmou
@younssaitmou 2 жыл бұрын
Great stuff as usual 👍🏾
@medch1750
@medch1750 2 жыл бұрын
Thanks for the explanations, waiting for part2
@aqua_dio
@aqua_dio 2 жыл бұрын
Finally, you are back🎉🎉🎉🎊
@brunodonascimentomaciel9984
@brunodonascimentomaciel9984 2 жыл бұрын
The only one 1 hour educational video that I don't make me bored at the middle.
@onyemaanthony
@onyemaanthony 2 жыл бұрын
Liked it before watching because I trust it's actually an asset, please continue with testing tutorial because there a only few tutorials on testing in flutter
@ideepdave
@ideepdave 2 жыл бұрын
You made it less boring than I expected🤩 Thank you very much 🙏
@harishkandekar1098
@harishkandekar1098 Жыл бұрын
Great work & effort Thanks for sharing Knowledge !!
@mipelirroja
@mipelirroja 10 ай бұрын
Awesome, thank you so much very clear explanation! 🙂
@BeyonderW
@BeyonderW Жыл бұрын
Thanks for sharing bro, this really help me out.
@stephenwenceslao8623
@stephenwenceslao8623 Жыл бұрын
your explanation is easy to understand. thank you
@ahmedmaher-ez9xt
@ahmedmaher-ez9xt 2 жыл бұрын
Can't wait till the nexr part ^_^ thanks for your great help
@willian.veitee
@willian.veitee Жыл бұрын
thank you for this class!! 💙
@antijulius
@antijulius 2 жыл бұрын
Thank you so much for this.
@agent47in51
@agent47in51 5 ай бұрын
Your Video helped me to learn the testing.
@bodehallak1552
@bodehallak1552 2 жыл бұрын
Welcome back 🔥🧡♥️
@tintin537
@tintin537 2 жыл бұрын
Welcome back Reso
@basharshehab5803
@basharshehab5803 2 жыл бұрын
Great vid! Waiting part 2..
@eikeimnetz
@eikeimnetz 2 жыл бұрын
Thank you very much for this good tutorial
@afolayanademola461
@afolayanademola461 2 жыл бұрын
thank you so much reso coder🤝👏👏👏👏💛💛💛
@akshayyadav6674
@akshayyadav6674 2 жыл бұрын
I can't wait for part 2 👍
@giorgosangelopoulos2098
@giorgosangelopoulos2098 2 жыл бұрын
amazing video, i was having hard time with your bloc TDD courses. I am very familiar with provider , this is very helpful for learning testing.
@tareqabunasser9342
@tareqabunasser9342 2 жыл бұрын
welcome back 🔥🔥🔥
@codejack7666
@codejack7666 2 жыл бұрын
Great video, thanks
@leoingson
@leoingson 2 жыл бұрын
Reso's back!
@tintin537
@tintin537 2 жыл бұрын
I wish you could explain testing with getIt and especially injectable and mock classes
@muhammadkadi381
@muhammadkadi381 2 жыл бұрын
Welcome back 😍😍😍😍😍😍
@olamilekanadeleke6806
@olamilekanadeleke6806 2 жыл бұрын
I've been wanting for an updated video on test❤😅
@dennyraymond3753
@dennyraymond3753 2 жыл бұрын
Thanks so much!
@hafizibrohim599
@hafizibrohim599 2 жыл бұрын
Welcome back 🔥👍
@moazelsawaf2000
@moazelsawaf2000 Жыл бұрын
Thanks a lot ❤
@lightkingbeknazarov7919
@lightkingbeknazarov7919 2 жыл бұрын
I respect your creativity. Everything is clear and understandable. I would really like a new playlist about blocks (ddd course) Please don't ignore your followers.
@aoubied3624
@aoubied3624 2 жыл бұрын
very good tutorial keep going
@suparman6494
@suparman6494 2 жыл бұрын
great tutorial
@Flutterdev6391
@Flutterdev6391 2 жыл бұрын
Reso is back
@sinanajdihejazi7031
@sinanajdihejazi7031 2 жыл бұрын
great job keep going
@adelsaad3079
@adelsaad3079 2 жыл бұрын
thank you so much
@verry_codes
@verry_codes 2 жыл бұрын
Resooo we missed you 😍🎉🎉🎉
@martinseal1987
@martinseal1987 2 жыл бұрын
I actually use widget tests to test a small group of widgets for instance I have a calendar and a switch that changes the calendar from week view to month view with a shared state, this is normally where you'll find bugs rather than testing a single widget, to be clear I still test single widgets but small groups of widgets give us much better coverage and still get the speed of widget testing
@warunakaushalya4157
@warunakaushalya4157 2 жыл бұрын
Welcome back 😉
@alexandredinh-debouny5244
@alexandredinh-debouny5244 2 жыл бұрын
Hello. I'm enjoying so far this video about testing. I have a question : which Visual Code plugins are you using to generate automatically code snippets for Tests (t-scaffolding, aaaT) ?
@quyongoc3848
@quyongoc3848 2 жыл бұрын
long time no see
@thinkGrey_
@thinkGrey_ 2 жыл бұрын
Thanks alot
@tanjiakae825
@tanjiakae825 2 жыл бұрын
welcome back =)
@he.who.debugs
@he.who.debugs 2 жыл бұрын
After two years of working as a part-time junior Flutter developer in my university student life, I've used lots of Flutter widgets, state managements, etc. But I don't feel like I'm improving much. Now, this tutorial would be the first step to approach senior level. Thanks a lot man!
@daumienebi
@daumienebi 11 ай бұрын
I'm going into the university this year and that's my plan....to get some flutter side jobs / work on my personal apps. Did you get hired by companies or you worked as a freelancer?. Thanks
@he.who.debugs
@he.who.debugs 11 ай бұрын
@@daumienebi Both bro! I'm now a university dropout. I'm working as a full-time senior flutter developer and also working as a freelancer in my free time.
@ahmaddarwish420
@ahmaddarwish420 2 жыл бұрын
Thanks for the video :D Can we use equatable in article class?
@egyleader
@egyleader 2 жыл бұрын
Like before I watch 😊
@juangomez3295
@juangomez3295 2 жыл бұрын
Thanks for the tutorial man, I love your Vs Code config, can you share it plz!
@walidelharrak9455
@walidelharrak9455 4 ай бұрын
just beautiful
@djaalabahmed2038
@djaalabahmed2038 2 жыл бұрын
Great it is being long time
@mohamedhamde6611
@mohamedhamde6611 2 жыл бұрын
Thanks a lot , boom .
@nnguyetnam
@nnguyetnam Жыл бұрын
Thank you Reso for your very nice video! I am a fan of TDD and trying to find the effective/resonable way to use it on my daily project I got one question: At the end of the video, you put the function notifyListeners() in getArticles() but it is not following the TDD flow since it is "redundance" for this specific test case. Do you agree? Which test case we should write which will need this notifyListeners() called? thanks,
@cgbrek
@cgbrek 2 жыл бұрын
Matt is Bacc !!!!!
@BradMcHelm
@BradMcHelm 2 жыл бұрын
hopefully you do this for your firebase DDD course
@kartikshrivastava1500
@kartikshrivastava1500 Ай бұрын
I think code duplication is fine inside tests, as each unit test is expected to be optimised for readabiliy over DRYness
@DarkHeros09
@DarkHeros09 2 жыл бұрын
Let's Go.
@aqua_dio
@aqua_dio 2 жыл бұрын
please show how to correctly create folder by layer feature structure in flutter
@omarjennane2620
@omarjennane2620 2 жыл бұрын
What happened to your website ?
@srihariayapilla4233
@srihariayapilla4233 2 жыл бұрын
can anyone tell me the name of the vs code extention that displays those "----" dashes to indicate blocks of code?
@IIdroyII
@IIdroyII Жыл бұрын
Can we mock the Article call using mocktail and use MockArticle instead of creating three different objects of Article class?
@tinoutech5016
@tinoutech5016 2 жыл бұрын
Why you have used mocktail istead of mockito? is there a specific reason?
@MedioNoOficial
@MedioNoOficial 4 ай бұрын
You mentioned that dependencies should be injected through constructor rather than hardcoding in the field declaration because that makes app more testable, but what if I have many chained dependencies? I will need to declarate all in the constructor every time. For example PersonProvider(PersonService(PersonDao(Dio("url"))))) is this correct or i there is a way to auto inject dependencies with container like on SpringBoot?
@anggadwiapriarifandi69
@anggadwiapriarifandi69 2 жыл бұрын
what happened to your website? it's been offline for couple of days
@saifiu
@saifiu 2 ай бұрын
love u
@mohamedel-shehaby9636
@mohamedel-shehaby9636 Жыл бұрын
Really good tutorial, keep going, but What's the theme of vscode.
@miladhesami6630
@miladhesami6630 2 жыл бұрын
Very good toturial , #flutter_test , why you didn't use #mockito instead of #cocktail like your ttd clean architecture toturial
@misterjj96
@misterjj96 2 жыл бұрын
Your website is offline, this was fix!!
@AIStha11
@AIStha11 2 жыл бұрын
what about stream rather than the future??
@fuadreza3090
@fuadreza3090 2 жыл бұрын
I wondering why your website cannot be accessed?
@milinneema8737
@milinneema8737 2 жыл бұрын
Make videos on bloc 8.0
@martinseal1987
@martinseal1987 2 жыл бұрын
I can't stand provider but I have used it
@user-dw9xo6dc9g
@user-dw9xo6dc9g 16 күн бұрын
Hello, Reso Coder. I can't subscribe your newsletter. It's shows API related issue.
@vinzentwitte1727
@vinzentwitte1727 2 жыл бұрын
Great video, thanks. I think it's easier to put the `when` in `arrangeNewsServiceReturns3Articles` into a `setUp` in the group. So you don't have to call it, because `setUp` get called automatically, right?
@donathmm3881
@donathmm3881 Жыл бұрын
No because in a third test you may don't want the same articles to be arranged
@rijalulfikri
@rijalulfikri 2 жыл бұрын
What happens to your website Mat?
@MicealNaing
@MicealNaing Жыл бұрын
its been over 1 year no any new video from sir Reso Coder. Are you Okay sir?
@rakulagn4598
@rakulagn4598 2 жыл бұрын
Dude 😬 Make Tutorial with Auth0 implementation I Saw Some Article it's been outdated
@ashwanisingh4931
@ashwanisingh4931 2 жыл бұрын
Make real-world examples video with mockito.
@ResoCoder
@ResoCoder 2 жыл бұрын
I'd still use mocktail though.
@marodonthemorone
@marodonthemorone 2 жыл бұрын
when is part 2 going to be out?
@ResoCoder
@ResoCoder 2 жыл бұрын
Saturday
@khurshidddbek
@khurshidddbek Жыл бұрын
10:18
@noblenetdk
@noblenetdk Жыл бұрын
Will Do something with that beard - I can't concentrate on the training 😂
@BotaParaFlutter.-ll7co
@BotaParaFlutter.-ll7co Жыл бұрын
I haven´t been creating apps for two decades,more or less,I´m PL/SQL programmer.But unit tests seems to be a really stupid Idea(change my mind),probably not useless,I mean for devices that work withouth human interaction like a mixer or a microwave woven.But E2E testing tests both the whole application and the code,they can be written by a QA and run totally isoalted from the system.At least in Brazil QA´s are less expensive than programmers.Unit tests does not seem so "agile",the concept of TDD is even worse itself.Do unit tests increase the size of the applicattion that I will distribute in the Android store,or they´re tree shaked out at least.I think they really slow down programming for what they do,as I said I´m not against testing ,i just think the testing budget should bne directioned for things like E2E,smoke,Happy path and gorila testing,wich are probably more effective and easy to automate.In 2022 Several big companies in Brazil had problems in production even havin teh so called 100% code coverage,from Banks to big E-Commerce stores.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 100 МЛН
Flutter Unit Testing Tutorial For Beginners - Practical Guide
1:06:54
Rivaan Ranawat
Рет қаралды 32 М.
Automate your Testing on Devices with Flutter Integration Testing
20:33
Flutter Explained
Рет қаралды 47 М.
Top 35 Flutter Widgets
29:29
Flutter Mapp
Рет қаралды 320 М.
Flutter Testing For Beginners - The Ultimate Guide
13:05
Robert Brunhage
Рет қаралды 59 М.
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 119 М.
Unit Test with Mockito in Flutter
11:26
AI with Flutter
Рет қаралды 1,2 М.
Python Tutorial: Unit Testing Your Code with the unittest Module
39:13
Corey Schafer
Рет қаралды 1,3 МЛН
Тестирование Flutter-приложений
1:17:26
Skill Branch
Рет қаралды 6 М.