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

ความคิดเห็น • 50

  • @DanielaEsparza-yk9vf
    @DanielaEsparza-yk9vf 11 หลายเดือนก่อน +1

    I applaud not only the incredible way of explaining but also the high level of organization in your code, congratulations.

  • @Amitkumar-rd3lv
    @Amitkumar-rd3lv 3 ปีที่แล้ว +8

    One day your channel will be in trending....

  • @rikyriky966
    @rikyriky966 2 ปีที่แล้ว +2

    Thanks a lot. Simple and fast explanation.

  • @user-vz4wp9zo2z
    @user-vz4wp9zo2z ปีที่แล้ว +1

    Thank you for video , I'm junior automate testing flutter :)

  • @hemishpancholi
    @hemishpancholi 3 ปีที่แล้ว +4

    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.

  • @camilohernandezruiz2776
    @camilohernandezruiz2776 ปีที่แล้ว

    me gustó mucho, gracias!

  • @muneerAbro
    @muneerAbro 2 ปีที่แล้ว +1

    Easy explanation, best tutorial

  • @faizandarwesh7867
    @faizandarwesh7867 2 ปีที่แล้ว +2

    Great explanation and such simple and precise implementation sir

  • @sakibshaikh3447
    @sakibshaikh3447 2 ปีที่แล้ว +1

    Simply and beautifully explained😄

  • @MrRe-sj2iv
    @MrRe-sj2iv 2 ปีที่แล้ว +2

    What an amazing tutorial video.
    It's very easy to understand and follow.
    Thank you so much!

  • @TonyMalik7
    @TonyMalik7 ปีที่แล้ว

    i need more videos just like that awsome video sir thanks for understanding

  • @morshedraiankhan6968
    @morshedraiankhan6968 2 ปีที่แล้ว +1

    Thanks, Well explained video.

  • @_jacobdev
    @_jacobdev 3 ปีที่แล้ว +2

    Thanks for the video! Very concise and useful !

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว

      Thank you, I am glad that you liked it :)

  • @RobertBrunhage
    @RobertBrunhage 3 ปีที่แล้ว +2

    Great explaination, couldn't have done it better myself!

  • @thierryp.oliveira2422
    @thierryp.oliveira2422 2 ปีที่แล้ว +1

    thank you so much, really nice video, it was my (delayed) first step about tests

  • @balaji.j2024
    @balaji.j2024 3 ปีที่แล้ว

    Waited a lot ,thanks👍

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว +1

      Sorry for the long waiting time :) I hope I can be now faster with the rest of the testing series :)

  • @krishnakumarramachandran5888
    @krishnakumarramachandran5888 3 ปีที่แล้ว

    Thanks for this video brother, Next video in Testing Series.

  • @techstudio7331
    @techstudio7331 3 ปีที่แล้ว +1

    Awesome

  • @GroovinChip
    @GroovinChip 3 ปีที่แล้ว +1

    Excellent video, Max!

  • @josecoverlessons
    @josecoverlessons 3 ปีที่แล้ว +7

    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!

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว +1

      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 :)!

    • @josecoverlessons
      @josecoverlessons 3 ปีที่แล้ว

      @@FlutterExplained Thank you will certainly be subscribe to watch it when it comes!

  • @youknowme2359
    @youknowme2359 3 ปีที่แล้ว +1

    Wow , great insight sir, can you do a fultter_bloc/ cubit unit test with a network api call

  • @moazelsawaf2000
    @moazelsawaf2000 ปีที่แล้ว +1

    Thanks a lot ❤

  • @Shakl-e
    @Shakl-e 3 ปีที่แล้ว +1

    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.

  • @ravitejanomula2652
    @ravitejanomula2652 3 ปีที่แล้ว

    Good and easy

  • @abdullahmoiz8151
    @abdullahmoiz8151 3 ปีที่แล้ว +1

    Great explanation thanks a lot

  • @marodonthemorone
    @marodonthemorone 3 ปีที่แล้ว +1

    Such a great content!

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว

      I am glad that you liked it :)

    • @marodonthemorone
      @marodonthemorone 3 ปีที่แล้ว +1

      Flutter Explained yep, thanks to you I'm going to start writing unit tests in my project

  • @torukobyte
    @torukobyte 2 ปีที่แล้ว

    Which font you are using in android studio as code font?

  • @EmiOkInt
    @EmiOkInt ปีที่แล้ว +1

    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!

  • @quicksketch1617
    @quicksketch1617 ปีที่แล้ว

    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?

  • @DungPham-ye5jg
    @DungPham-ye5jg ปีที่แล้ว

    How to run unit tests with AVD without using integration_test? It is running on Windows platform and how to change that?

  • @edgarsjaudzems9837
    @edgarsjaudzems9837 ปีที่แล้ว +1

    Which VSCode theme is this? And thanks for a great video!

  • @adamcierniak3902
    @adamcierniak3902 3 ปีที่แล้ว

    Comment to promote

  • @anonymosranger4759
    @anonymosranger4759 3 ปีที่แล้ว +1

    R U German? If yes, Moin!