Mock Objects: the Police Enforcer of Unit Testing | Team Learning

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

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

  • @aprobinda
    @aprobinda Месяц назад +1

    Both the demo and the explanations are excellent! Thank you.

  • @GrzegorzGaezowski
    @GrzegorzGaezowski Месяц назад

    Thank you for this! Finally a description of mocks that doesn't mischaracterize the technique. Great job in describing it in relatively basic terms!

  • @sunnypatel1045
    @sunnypatel1045 Месяц назад +1

    Love this ❤

  • @pmareke
    @pmareke Месяц назад

    Thanks Emily, I love it!
    In Python I use Doublex a lot and it's a life saver if you work with Doubles (Stubs, Spies and Mocks), I'll give it a try to the kata!.

    • @EmilyBache-tech-coach
      @EmilyBache-tech-coach  Месяц назад +1

      Thanks! A lot of test double frameworks make it much easier to create spies than canonical mocks. Hope you enjoy the exercise anyway!

    • @pmareke
      @pmareke Месяц назад +1

      @@EmilyBache-tech-coach yes of course!
      I always have the same doubt about using a Mocking framework or cooking my own classes as you did.
      I don't like to have an extra dependency in the mocking framework, but it's so convenient 😂.