Unit Testing: Test Driven and Scenario Based Testing

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

КОМЕНТАРІ • 20

  • @EricTViking
    @EricTViking 6 років тому +2

    Good to see you guys back in the saddle again! @13:58 what has been accomplished is that the Calculator class has started to take shape - one step at a time. And that's the key to TDD - the steps should be small ones that lead to the finished solution, and not large leaps of code. For TDD to work the steps need to be small incremental ones. When the steps are too big, you get problems - as was demonstrated ;) Looking forward to the next episode...

  • @FSMOLD
    @FSMOLD 6 років тому +3

    Thanks for this video.The bug is :The divide function parameters' type needs at least one double or decimal or float,then the result would get the "decimal". int operate with int always get int.

  • @garethwynn01
    @garethwynn01 3 роки тому

    One of the benefits of writing the minimally passing test that returns a hard coded value of 15 is that you know at that point that you have a working test. There isn't a chance that you're "testing to compliance" by making the test pass when it shouldn't and you know this because the code is so simple you aren't going to make that mistake. You can then expand the implementation while still keeping your test in a passing state. The test is then acting as a development tool aiding in the implementation. Rather than just something you create once you believe the implementation is "complete". It's really common to see developers write tons of implementation code, test it by continually running the application and then write the tests at the end when actually it's much easier to create your tests and use those to exercise just that unit of the code as you write it.

  • @JohnLudlow
    @JohnLudlow 6 років тому +7

    Personally I think it's misleading to say that you write your tests first. I think a lot of people get the idea that you write 20 tests, then write some production code.
    I like to say that you write your tests and your production code at the same time, switching from one to the other, letting the tests lead the production code.

  • @WinLoveCry
    @WinLoveCry 3 роки тому +1

    Nice... great series

  • @mbut123
    @mbut123 6 років тому +2

    I'd add fluent assertions to the initial nuget list for a new unit test project.

  • @dosenmarko
    @dosenmarko 6 років тому +1

    FYI, Nunit does not support exception attribute for several version already. I still prefer the syntax of nUnit where test is attributed as test and not as 'fact'. Don’t know if this was live somewhere, but this is not a way to teach someone if you don’t know it.

  • @KalanaMahaarachchi
    @KalanaMahaarachchi 4 роки тому

    This is a great introduction. Like this.

  • @hssjohng8662
    @hssjohng8662 6 років тому +1

    PHIL JAPIKSE IS BACK!!!!!

  • @jamesallen74
    @jamesallen74 6 років тому

    Why does the audio not sync with the video?

    • @GaryJohnWalker1
      @GaryJohnWalker1 6 років тому +1

      It doesn't sync. And the reason I just came out of full screen to check comments in case it was "just me" and this computer looking at lips not matching the sound!

    • @visualstudio
      @visualstudio  6 років тому

      Sorry about that. We fixed this for the rest of the videos in the series. Robert

  • @mrfusion3000
    @mrfusion3000 3 роки тому

    How is it possible in 2018 to not get synchronization between picture and sound working?

  • @RealDids
    @RealDids 6 років тому

    Please bring better unit testing and TDD support to Visual Studio for Mac.

  • @imcoyote9925
    @imcoyote9925 6 років тому

    Please reduce the noise in the sound.

    • @visualstudio
      @visualstudio  6 років тому

      Sorry about that. We fixed this for the rest of the videos in the series. Robert

  • @m0hamedSharaf
    @m0hamedSharaf 6 років тому

    Really you don't have to switch tabs each you want to run the tests..

  • @sacredgeometry
    @sacredgeometry 4 роки тому

    20:05 now we see why people advocate for TDD and unit tests. Because they are incompetent.

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

      You’re not wrong that it was incompetent to not know how to divide.. But if you truly think that TDD and unit tests are for idiots, then you need to inform yourself more about the subject… And never ever say that in an interview, you’ll get laughed at.

  • @NBGTFO
    @NBGTFO 6 років тому +2

    This is so basic as to be a waste of time for anyone who has done professional development for any length of time. If you're completely new to programming, then this video many be of some minor benefit. Is that really your target audience?