Blazor Unit Testing with bUnit in .NET 6 🔥

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 34

  • @PatrickGod
    @PatrickGod  2 роки тому +2

    The first 1,000 people to use the link will get a 1 month free trial of Skillshare: skl.sh/patrickgod09221 🚀

  • @ravenlb
    @ravenlb 2 роки тому +6

    Please create a unit testing video for .NET 6/7 APIs!

  • @unhandledexception1948
    @unhandledexception1948 2 роки тому +3

    Awesome…. would be great to do a part 2 with component that have injected dependencies…

  • @NotInventedHereShow
    @NotInventedHereShow 2 роки тому +15

    Thank you for covering bUnit and the kind words. It's much appreociated!
    Ps. yes, CUT is short for component under test. A nod to the SUT (system under test) nomenclature.

    • @PatrickGod
      @PatrickGod  2 роки тому +1

      Hey Egil! Thank you so much for watching! 😊 And thanks a lot for clarifying. You live and learn. I'm pretty sure I will make more videos about bUnit. Really great stuff!

    • @koori1
      @koori1 2 роки тому

      Awesome work on bUnit Egil! Very easy to work with :)

  • @luisfernandodeolazabalsche3317
    @luisfernandodeolazabalsche3317 2 роки тому +1

    Wow... muchas gracias ;-)

  • @voswouter87
    @voswouter87 8 місяців тому

    Can the tests also be included in the project?
    There's a concern that release code will have tests, that has been accounted for.
    I tried adding a .razor test to my project but it won't run...
    Whereas the .cs test does run.
    No errors or anything like that, the test is simply listed as 'not run'.

  • @alexandermackintosh1755
    @alexandermackintosh1755 8 місяців тому

    Im really considering making the switch from angular to blazor , would you say unit testing feels simpler with bunit as a dotnet developer who uses xunit?

  • @seenurani1085
    @seenurani1085 Рік тому

    Hai, patrick God. i would like to know unit test with gRPC web services on blazor of syncfusion . please, share or upload the video for knowing me.

  • @Artmageddon
    @Artmageddon 2 роки тому +4

    YES! This was something I had asked about awhile back and I'm so happy to see you do a video on this!

  • @bigfi2772
    @bigfi2772 Рік тому +1

    Hello Patrick and thank you for this video. I'm starting with unit testing and after your introduction video, I'm really confuse. For static Web apps like your test here, I can see the point of unit testing. But how can you reasonably implement unit testing in a real Blazor app with a database and call to the server side of the project. What can you really test with bunit that will make sense. Can you implemente bunit in one of your more advance project? Thank you in advance. Karim.

  • @TheBlackWarriorLP
    @TheBlackWarriorLP 2 роки тому +2

    your videos are currently helping me so much, everything i want to research ur vids show up and explain perfectly. But please always include for one thing the repo pattern with injection :)

  • @kolesplace
    @kolesplace Рік тому

    I like your content but gosh it takes so long to get to the meat. I

  • @erictenwestenend868
    @erictenwestenend868 Рік тому +2

    Yes would like to see more on bUnit

  • @NwokeohuruOnyedikachi-po3qr

    Please do a video on unit testing in DotNet6. Thanks

  • @AshokKumar-h5l8p
    @AshokKumar-h5l8p Рік тому

    Can this be used as Headless UI automation testing?

  • @kourosh234
    @kourosh234 Рік тому

    Is this unit test or UI Test?

  • @subhrajyotisen7153
    @subhrajyotisen7153 11 місяців тому

    Very informative video! One question, Is there any other way to test Blazor components? Is it possible to test Blazor components without using a 3rd party package? Thanks in advance,

  • @golljhjkahsdah2817
    @golljhjkahsdah2817 6 місяців тому

    good

  • @10Totti
    @10Totti 2 роки тому +2

    Tutorial on wasm offline data ?

    • @modx5534
      @modx5534 2 роки тому +1

      Yes please :) I would love to develop offline-capable Progressive Web Apps with Blazor.

  • @gwent_dao
    @gwent_dao 2 роки тому

    Hey Patrick. I have an idea for you. What about refresh token for blazor frontend side?

  • @ronpathak5395
    @ronpathak5395 Рік тому

    Hi Patrick, good video... did you ever do a follow up with looking at more complex razor pages with nested components, dependencies etc...

  • @pranitbatra2
    @pranitbatra2 2 роки тому

    Hey Patrick, love your content! Please bring us .NET 6 Web API configuration and authorization with React.

  • @koori1
    @koori1 2 роки тому

    Thank you Patrick, was just what i was looking for, to start testing :) Now i am watching all of Egil's videos too :) Awesome work.

  • @salmanahmedkhan3979
    @salmanahmedkhan3979 Рік тому

    great. love it. the best channel for C# development on UA-cam

  • @wingman2tuc
    @wingman2tuc Рік тому

    Is the a way to get the coverage from the bunit tests ?

  • @byte7930
    @byte7930 2 роки тому

    Thank you for the introduction of bUnit. I think the next weeks I'll have to update my project with *a lot* of tests :D Not only on the client side, but also on the api side. Does bUnit (or any other helper) also show how much of my code is already covered by tests?

    • @NotInventedHereShow
      @NotInventedHereShow 2 роки тому +2

      Any code coverage tool compatible with .NET should work with bUnit. bUnit is just a library that enables you to run and interact with your component under test (CUT) in a regular test, be it xUnit, NUnit or MSTest test.

  • @izwansystec87
    @izwansystec87 2 роки тому

    Wow...new room 😂

  • @alexgoeckner5147
    @alexgoeckner5147 2 роки тому

    Thanks Patrick