Flutter Testing Guide for Beginners - Part 2: Widget & Integration Tests

  Рет қаралды 41,945

Reso Coder

Reso Coder

Күн бұрын

Пікірлер: 48
@ArmanulTanvirHoque
@ArmanulTanvirHoque 3 ай бұрын
Thank you so much, Reso Coder. Your tutorials have significantly improved my understanding of testing and made learning new aspects of Flutter enjoyable.
@EduardoMendoza-gy3pg
@EduardoMendoza-gy3pg 2 жыл бұрын
This information is worth millions, very clean and easy to undestand
@GabrielCosta-xr5vr
@GabrielCosta-xr5vr 2 жыл бұрын
Great work! Just to note: Integration tests are almost a MUST nowadays, because doing it you can automatize the shaders compilations to avoid jank issues (specially in iOS). With integration tests you don't need to generate the shaders manually everytime you build a version of the app.
@wallywebber788
@wallywebber788 2 жыл бұрын
Can you explain some more?
@GabrielCosta-xr5vr
@GabrielCosta-xr5vr 2 жыл бұрын
@@wallywebber788 Sure. Nowadays flutter has a problem with rendering animations without jank in some cases. It's only in the first run of the app (in Android it's only in the first time that the users open your app, in iOS its more serious, if you close the app an open again, the jank will be there in the first run of the animation.) To mitigate that problem, the Flutter team gave us a way to pre-warm the animations, this is helping reducing the jank in the first run. To do that you need to open and navigate your app through the animations, basically using your app as the users would do. But you need to do everytime you will build your app or if you change something. As integration tests already navigate through the app, you can use them to cache the shaders for you automatically. You can check more in the flutter docs: docs.flutter.dev/perf/rendering/shader And this article shows how to use integration tests to mitigate the shader caching: alex-min.fr/improving-flutter-latency-through-sksl-automation/
@wallywebber788
@wallywebber788 2 жыл бұрын
@@GabrielCosta-xr5vr thank you for detail explanation!
@AnonymousAnonymous-nr8su
@AnonymousAnonymous-nr8su 2 жыл бұрын
Code duplication is not a problem. DRY tends to conflict with SOLID. And even more of it, there is "DRY in test suites is an antipattern".
@pedrosantos4368
@pedrosantos4368 11 ай бұрын
AWESOME and thanks for sharing so much knowledge!!
@cram4
@cram4 10 ай бұрын
Wonderful tutorial. Thank you.💯
@amsyary1
@amsyary1 2 жыл бұрын
wow, just finished part1, part two has been uploaded, thank you
@gaxkiller
@gaxkiller 2 жыл бұрын
Great tuto again thank you. I just don't get how you make integration test in real life only using mock. To me you would have, while developing your application, to implements your services with a Stub version (basically how you mocked your NewService the wrong way in the previous video), then run your application where it only uses Stubbed version of your services. I am not sure if I am clear
@ronyhassanroman
@ronyhassanroman 2 жыл бұрын
I love you brother. Lots of love from Bangladesh. You are an angel for us whos are not have money for taking paid course. Please Please Please Please Please Please Please Please continue upload flutter videos.
@imancs
@imancs 2 жыл бұрын
Thanks for sharing. Please do some more videos on testing.
@lgf-sq9yf
@lgf-sq9yf Жыл бұрын
awesome tutorial!!
@mangmun001
@mangmun001 2 жыл бұрын
Hi, I really appreciate your content that helps me learn from a professional. Can you upload more content of Flutter, I'm kinda addict to your content now.
@yusufumar6738
@yusufumar6738 Жыл бұрын
Awesome tutorial, this really helps me. Thanks man 💙
@hafizibrohim599
@hafizibrohim599 2 жыл бұрын
Reso coder prepare for real app development 🔥👍
@kevinjanson6865
@kevinjanson6865 2 жыл бұрын
Great work as always!
@ליאורפולק-צ8ז
@ליאורפולק-צ8ז 2 жыл бұрын
Excellent tutorial!
@moazelsawaf2000
@moazelsawaf2000 Жыл бұрын
Thank you so much ❤
@jayasubin-codes6233
@jayasubin-codes6233 2 жыл бұрын
Very informative; Thanks for making this tutorial
@viktormudzhyri4914
@viktormudzhyri4914 2 жыл бұрын
Thank you!
@lorenzosala3527
@lorenzosala3527 2 жыл бұрын
Thank you so much !!
@opimand
@opimand 2 жыл бұрын
Yep, the tests are done! I feel I can ask for more salary 🤓.
@Nomadjackalope
@Nomadjackalope 2 жыл бұрын
Amazing! Thanks :)
@nazar6222
@nazar6222 2 жыл бұрын
Thanks!
@damagedgoodies
@damagedgoodies 2 жыл бұрын
Good stuff!
@jeffersonberrones2571
@jeffersonberrones2571 2 жыл бұрын
Hi, great content. I need to get the context before initializing Material App? How could I do this?
@joekal2240
@joekal2240 2 жыл бұрын
you couldn't. material app is the first built widget, so you could assigning a navigate key to it and use it whenever you want.
@iiiviii9354
@iiiviii9354 11 ай бұрын
Hi, Could you please share about create preparation and end test such as junit @beforeeach @aftereace?
@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.
@victormanuelfrancodev
@victormanuelfrancodev 2 жыл бұрын
thank you for this testing!!, its could be more interesting if you try to do in a big app, thank you anyway!!!
@robinz2527
@robinz2527 2 жыл бұрын
Hey can you do a video on "integration testing" with flutter application for web application
@Stefan-xm9qb
@Stefan-xm9qb 7 ай бұрын
When I debug widget tests in vs code how can I see the widget in the browser/simulator? It would be helpful for debugging.
@theresacolorado367
@theresacolorado367 Жыл бұрын
Hello? I have a question "is it possible to incorporate test widget into integration test?" Thank you.
@RobbinB5
@RobbinB5 2 жыл бұрын
Is the flutter bootcamp worth it and still up to date? I'm a beginner in Flutter, but I have a few years of work experience as a software engineer and I'm interested in learning mobile app development.
@marsx4903
@marsx4903 2 жыл бұрын
Bro need new DDD course. please !!! Excitted to see with a API and local cache
@marodonthemorone
@marodonthemorone 2 жыл бұрын
can you also create a tutorial about golden tests?
@Hema115
@Hema115 2 жыл бұрын
Why don't you talk about your bootcamp? is it up to date? or is it old videos?
@samjithmk7338
@samjithmk7338 2 жыл бұрын
Integration_test dart package is discontinued. Is there any other way to run the integration test code
@marsx4903
@marsx4903 2 жыл бұрын
Hi ResoCoder, I think you are a professional programmer. I am doubting why you are not using GetX State Management? Is there any defect with this package and using it? It is the most liked Flutter Package but not Flutter Favorite. I see many people spread hate on this package and de-promote using it. Can you reply with your honest opinion on this? I know many people gonna comment about the defects, but sorry... Any other's comment will not be considered to change my mind.
@lorenzosala3527
@lorenzosala3527 2 жыл бұрын
GetX its really good, but it has one problem and is that you "forget" about the BuildContext, which is a core thing in Flutter. That's why its considered an "anti pattern" solution. I really like using it, but if you want to keep it clean, bloc is really good.
@iamwhiteknife
@iamwhiteknife 2 жыл бұрын
I am on Android Studio and the integration_test is running on the command line instead of Emulator or other devices, how to fix this? #help
@mohamedhamde6611
@mohamedhamde6611 2 жыл бұрын
First!
@binhtrinh22
@binhtrinh22 2 жыл бұрын
Great work Always love your content
@tovidd
@tovidd 2 жыл бұрын
My test throw: [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════ The following TestFailure was thrown running a test:
@Enzo-hz7zo
@Enzo-hz7zo 2 жыл бұрын
Thanks!
Flutter Testing Guide for Beginners - Part 1: Unit Tests & Setup
1:00:28
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 88 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 356 М.
Flutter Widget Testing Tutorial For Beginners - Practical Guide
46:13
Rivaan Ranawat
Рет қаралды 18 М.
Bloc Test Tutorial - Easier Way to Test Blocs in Dart & Flutter
25:04
Flutter Testing For Beginners - The Ultimate Guide
13:05
Robert Brunhage
Рет қаралды 60 М.
Flutter Bottom Navigation with Nested Routing (Auto Route)
46:06
Automate your Testing on Devices with Flutter Integration Testing
20:33
Flutter Explained
Рет қаралды 49 М.
35 Flutter Tips That Will Change Your Life
10:53
Flutter Mapp
Рет қаралды 308 М.
Flutter Unit Testing Tutorial For Beginners - Practical Guide
1:06:54
Rivaan Ranawat
Рет қаралды 37 М.
Implementing complex UI with Flutter - Marcin Szałek | Flutter Europe
44:26
Create Responsive Flutter Apps with Minimal Effort
43:10
Reso Coder
Рет қаралды 75 М.
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 88 МЛН