3:50 "We can't instanciate the dependency right in the method, because then we don't have any external way of mocking that dependency" Is it good practice to change code (like extracting the instanciation out of the method) only for testing? Thanks for the great video!
You should do it not only because of testing, it's a bad practice, if you're instantiating dependencies in the method, your class is gonna be coupled to the other, read about dependency inversion
What is color theme you're using. Looks great! Oh and the content is excellent my friend. I've watched more than several of your Flutter videos. All good!
I have searched on the web, but I could not find a satisfying answer to my question. Why do I need to make a unit test instead of running the code directly in debug mode and printing the required values to the console?
it is the font Fira Code. Follow these steps to install it medium.com/@samichkhachkhi/fira-code-monospaced-font-with-programming-ligatures-1cfcc829d692
hey, I am getting this error every time I run command for testing. { Could not find a file named "pubspec.yaml" in "/home/paras/.pub-cache/hosted/@t Pls help me out. the path is correct that's confirmed, getting the same error on all integration test repos
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.
I am sure you have no idea what kind of hardwork goes into making this type of content. If you want to give content creators suggestions, you might need to learn the way to do that.
Hello :) When i'm trying to run test, I get error; Could not find a running Flutter app that was instrumented with enableFlutterDriverExtension. Run your instrumented app before running driver tests. Google can't help :( Maybe you will know what's reason of this error?
You made testing easy! I thought testing as a very complicated thing to get to. Thanks Robert!
Glad it was helpful!
I m very beginner to flutter testing. I thing I got something from this video. thank you very much 👏🏻❤
One of the best video for Flutter Testing
I’ve been waiting for a video like this for a while. Time to spam my teammates 😊😏
Haha you are doing the right call 😂
So short clean and understandable explained, thank you
Please remove the white animation lines, it's hard to focus when it's popping on the screen. But the content is great.
Thanks for the feedback, it's gone in the newer videos!
Excellent Demonstration
Glad it was helpful!
Very nice and simple explanation 👍
Thanks Tadas!
Great video. Thanks
Thank you. Amazing explanation
Hey Robert, great content thanks for sharing!
good video with an easy explanation so thanks a lot
Nicely done, Thanks
Happy you liked it!
Awesome content, Thanks !
As always great video!
Thanks Dominik, highly appreciated!
Thanks!
Great video!
I watched the video in 2X then come back in 1X just for fun >
Great video! btw: `driver?.close();` saves a cpl lines
Thanks a lot
Wow! I love it
3:50 "We can't instanciate the dependency right in the method, because then we don't have any external way of mocking that dependency"
Is it good practice to change code (like extracting the instanciation out of the method) only for testing?
Thanks for the great video!
You should do it not only because of testing, it's a bad practice, if you're instantiating dependencies in the method, your class is gonna be coupled to the other, read about dependency inversion
Mockito should be a dev dependency if I'm not wrong 🤔🤔
Cam you show how to use flutter driver with chrome and see the testing?
What is color theme you're using. Looks great! Oh and the content is excellent my friend. I've watched more than several of your Flutter videos. All good!
Sounds like One Dark, originally from the Atom code editor
Can we do api integration testing?
great video, thank you! have you ever done tests with google maps widget?
Thanks and sadly I have not...
awesome 👌
Thanks, glad you liked it!
please teach us flutter from start and easie rway
I have searched on the web, but I could not find a satisfying answer to my question. Why do I need to make a unit test instead of running the code directly in debug mode and printing the required values to the console?
@Anton. thank you. That will help for sure
Awesome Video,
How did you get the != sign to look like that in VS code ?
In 10:42 ?
it is the font Fira Code. Follow these steps to install it medium.com/@samichkhachkhi/fira-code-monospaced-font-with-programming-ligatures-1cfcc829d692
I actually use the jetbrains mono font www.jetbrains.com/lp/mono/ but anything works as long as it supports ligatures!
I prefer fira code as well. Check it out, it includes tons of common programming ligatures.
Jetbrains mono gang!!
Looks like these testing process are based on the VS code IDE, and thus not applicable to Android Studio.
Am I wrong/missing something?
No these are based on Flutter so you can even run it from the terminal with "flutter test"
Thanks .. will work with video some more.
hey, I am getting this error every time I run command for testing. { Could not find a file named "pubspec.yaml" in "/home/paras/.pub-cache/hosted/@t Pls help me out. the path is correct that's confirmed, getting the same error on all integration test repos
I just realized I am old because I am older thank 24 😏 ! .
.
.
.
.
.
Kidding 😂 ,, thanks man
Cool dude
How do you have that is not equal sign?
Ah jetbrains mono font
Your voice just like the guy who owner of Flutter Mapp YT channel.
is there BDD framework for Flutter already ?
I am not sure, have not taken a look
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.
Hey we are here to learn, if we want to watch fast videos we would go to TikTok, what's up with all the cuttings and fast forwardings?
I am sure you have no idea what kind of hardwork goes into making this type of content. If you want to give content creators suggestions, you might need to learn the way to do that.
This is hard 💀
go go fira code
Hello :) When i'm trying to run test, I get error;
Could not find a running Flutter app that was instrumented with enableFlutterDriverExtension. Run your instrumented app before running driver tests.
Google can't help :( Maybe you will know what's reason of this error?
Are you sure?