Unit Testing - For Beginners in Dart - Setup with Flutter Project
ฝัง
- เผยแพร่เมื่อ 6 ก.ค. 2024
- Unit Tests are the first and some would argue the most important part of Software Testing. Today we want to understand what a Unit Test is, what do we have to do to create a "good" unit test and last but not least we want to develop our very first Unit Test together.
#FlutterTesting #Testing #UnitTest
Timetable:
00:00 Intro
00:39 What is Unit Testing
01:16 Five Points for a good unit test
05:05 Explain the boilerplate
07:20 Writing first Unit Test
08:59 Testing TimeHelper
⭐️⭐️ Helpful Ressources ⭐️⭐️
marketplace.visualstudio.com/...
GitHub Repository: github.com/md-weber/flutter_t...
Tools we use to grow our TH-cam channel
TubeBuddy Review - Manage Your TH-cam Channel Easily
www.tubebuddy.com/flutterexpl...
Our current TH-cam gear
🎙 Samson Mic: amzn.to/324Gpof
📟 Satechi USB-C Adapter: amzn.to/3kUdQ5M
💻 MacBook Pro: amzn.to/3iQ9MBx
📹 Lumix FZ1000: amzn.to/3g7tW8D
⭐️⭐️ Follow us ⭐️⭐️
Twitter Mahtab - / mahtab_dev
Twitter Max - / flutter_exp
GitHub Mahtab - github.com/mt-tadayon
Github Max - github.com/md-weber
Website - flutter-explained.org/blog
⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support me, here are some links that could help me a lot.
Buy me a coffee - You are free to donate me a coffee so I can keep up my work.
www.buymeacoffee.com/flutterexp
I applaud not only the incredible way of explaining but also the high level of organization in your code, congratulations.
One day your channel will be in trending....
That would be fantastic :D
Thanks a lot. Simple and fast explanation.
Thank you for video , I'm junior automate testing flutter :)
You are most welcome :)
Best video and very good for beginners. I would even suggest all to watch this video. For professionals or intermediates its very good for refreshing topics.
me gustó mucho, gracias!
Easy explanation, best tutorial
Great explanation and such simple and precise implementation sir
Simply and beautifully explained😄
What an amazing tutorial video.
It's very easy to understand and follow.
Thank you so much!
You are most welcome :)
i need more videos just like that awsome video sir thanks for understanding
Thanks, Well explained video.
Thanks for the video! Very concise and useful !
Thank you, I am glad that you liked it :)
Great explaination, couldn't have done it better myself!
Thank you that means a lot to me :)
thank you so much, really nice video, it was my (delayed) first step about tests
Great I am glad that it helped you!
Waited a lot ,thanks👍
Sorry for the long waiting time :) I hope I can be now faster with the rest of the testing series :)
Thanks for this video brother, Next video in Testing Series.
Awesome
Excellent video, Max!
Thank you 😊 I am glad it helped you!
Very good video, Id appreciate more on testing please. though might not be the hottest type of tutorial. You have great knowledge, and would definitely help lots of developers with more videos on testing!
Thank you very much for your amazing feedback, I work currently on an integration Testing video that will come in the next couple of weeks :)!
@@FlutterExplained Thank you will certainly be subscribe to watch it when it comes!
Wow , great insight sir, can you do a fultter_bloc/ cubit unit test with a network api call
Thanks a lot ❤
You are most welcome :)
Thanks for the example where it was impossible to test and then became possible. I am thinking about TDD after it.. Just don't know how would I knew all the test before the implementation of a big feature for example.
Good and easy
Great explanation thanks a lot
You are most welcome :)
Such a great content!
I am glad that you liked it :)
Flutter Explained yep, thanks to you I'm going to start writing unit tests in my project
Which font you are using in android studio as code font?
Really thank you for the video, I appreciate it. Is it okay to add an argument in the unit test?
For example:
group("Plant", () {
test('Get plant', (String plantId) {
final plant = plantBLoC.getPlantId(plantId);
expect(plant.plantId, plantId);
});
}
Thank you again!
Hi, thank you.
I have a question, why doesn`t work to use a variable inside a function in unit testing? It's because DateTime it is another class?
How to run unit tests with AVD without using integration_test? It is running on Windows platform and how to change that?
Which VSCode theme is this? And thanks for a great video!
That is Atom OneDark :)
@@FlutterExplained Thanks
Comment to promote
R U German? If yes, Moin!
Ja sind wir :) grüße dich!