Flutter Testing For Beginners - The Ultimate Guide

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 65

  • @andenetalexander5244
    @andenetalexander5244 4 года назад +10

    You made testing easy! I thought testing as a very complicated thing to get to. Thanks Robert!

  • @toonkinga284
    @toonkinga284 3 года назад +1

    I m very beginner to flutter testing. I thing I got something from this video. thank you very much 👏🏻❤

  • @mruduladdipalli5417
    @mruduladdipalli5417 3 года назад

    One of the best video for Flutter Testing

  • @nash9785
    @nash9785 4 года назад +8

    I’ve been waiting for a video like this for a while. Time to spam my teammates 😊😏

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +1

      Haha you are doing the right call 😂

  • @anoniem012
    @anoniem012 Год назад

    So short clean and understandable explained, thank you

  • @umeshshrestha7851
    @umeshshrestha7851 3 года назад +56

    Please remove the white animation lines, it's hard to focus when it's popping on the screen. But the content is great.

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +13

      Thanks for the feedback, it's gone in the newer videos!

  • @i.k.shaikh3772
    @i.k.shaikh3772 4 года назад +4

    Excellent Demonstration

  • @tadaspetra
    @tadaspetra 4 года назад +2

    Very nice and simple explanation 👍

  • @MrVipulLal
    @MrVipulLal 2 года назад

    Great video. Thanks

  • @dhayanandhanraju5217
    @dhayanandhanraju5217 4 года назад +1

    Thank you. Amazing explanation

  • @MrJohn360
    @MrJohn360 3 года назад +1

    Hey Robert, great content thanks for sharing!

  • @gaetankuadiamona3919
    @gaetankuadiamona3919 3 года назад

    good video with an easy explanation so thanks a lot

  • @hectorprx
    @hectorprx 4 года назад +2

    Nicely done, Thanks

  • @Cestpasfaux-
    @Cestpasfaux- 3 года назад

    Awesome content, Thanks !

  • @DominikRoszkowski
    @DominikRoszkowski 4 года назад +1

    As always great video!

  • @Pedro5antos_
    @Pedro5antos_ 3 года назад

    Thanks!

  • @johncerpa3782
    @johncerpa3782 4 года назад

    Great video!

  • @gaxkiller
    @gaxkiller Год назад

    I watched the video in 2X then come back in 1X just for fun >

  • @ShawnBlais
    @ShawnBlais 4 года назад

    Great video! btw: `driver?.close();` saves a cpl lines

  • @advAnand8008
    @advAnand8008 3 года назад

    Thanks a lot

  • @gaepopodong
    @gaepopodong 4 года назад

    Wow! I love it

  • @lekahuna
    @lekahuna 3 года назад +1

    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!

    • @drgabbo1025
      @drgabbo1025 3 года назад +1

      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

  • @darshanrander1950
    @darshanrander1950 3 года назад

    Mockito should be a dev dependency if I'm not wrong 🤔🤔

  • @norbyzockt9902
    @norbyzockt9902 3 года назад

    Cam you show how to use flutter driver with chrome and see the testing?

  • @MarkDeibert
    @MarkDeibert 3 года назад

    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!

    • @reinhart1010
      @reinhart1010 Год назад

      Sounds like One Dark, originally from the Atom code editor

  • @vinaybakle6443
    @vinaybakle6443 3 года назад

    Can we do api integration testing?

  • @CharlesSteinmetz1
    @CharlesSteinmetz1 4 года назад +2

    great video, thank you! have you ever done tests with google maps widget?

  • @arsarsars1able
    @arsarsars1able 4 года назад +2

    awesome 👌

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 4 года назад

    please teach us flutter from start and easie rway

  • @YolunSonu1
    @YolunSonu1 2 года назад

    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?

    • @YolunSonu1
      @YolunSonu1 2 года назад

      @Anton. thank you. That will help for sure

  • @asjadsidd
    @asjadsidd 4 года назад +1

    Awesome Video,
    How did you get the != sign to look like that in VS code ?
    In 10:42 ?

    • @CharlesSteinmetz1
      @CharlesSteinmetz1 4 года назад +3

      it is the font Fira Code. Follow these steps to install it medium.com/@samichkhachkhi/fira-code-monospaced-font-with-programming-ligatures-1cfcc829d692

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +1

      I actually use the jetbrains mono font www.jetbrains.com/lp/mono/ but anything works as long as it supports ligatures!

    • @davidpanic
      @davidpanic 4 года назад +1

      I prefer fira code as well. Check it out, it includes tons of common programming ligatures.

    • @IllllIIllllI
      @IllllIIllllI 4 года назад

      Jetbrains mono gang!!

  • @jimaustin3608
    @jimaustin3608 3 года назад +1

    Looks like these testing process are based on the VS code IDE, and thus not applicable to Android Studio.
    Am I wrong/missing something?

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +1

      No these are based on Flutter so you can even run it from the terminal with "flutter test"

    • @jimaustin3608
      @jimaustin3608 3 года назад +1

      Thanks .. will work with video some more.

  • @parasarora4711
    @parasarora4711 4 года назад

    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

  • @egyleader
    @egyleader 3 года назад +1

    I just realized I am old because I am older thank 24 😏 ! .
    .
    .
    .
    .
    .
    Kidding 😂 ,, thanks man

  • @TheEkkas
    @TheEkkas Год назад

    Cool dude

  • @anoniem012
    @anoniem012 Год назад

    How do you have that is not equal sign?

  • @emirhan2070
    @emirhan2070 2 года назад

    Your voice just like the guy who owner of Flutter Mapp YT channel.

  • @pjpodx
    @pjpodx 4 года назад +1

    is there BDD framework for Flutter already ?

  • @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.

  • @sezzed5663
    @sezzed5663 3 года назад

    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?

    • @tanzeelhassan2934
      @tanzeelhassan2934 3 года назад

      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.

  • @anonymousone4824
    @anonymousone4824 3 года назад

    This is hard 💀

  • @YuvrajSingh-dt7vr
    @YuvrajSingh-dt7vr 3 года назад

    go go fira code

  • @justytutka
    @justytutka 3 года назад

    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?

  • @KommissarKong
    @KommissarKong Год назад

    Are you sure?