A Better Approach for Testing Micro Services - Introducing: Test Kits in Practice by Maxim Novak

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

КОМЕНТАРІ • 11

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

    Awesome idea.
    I expect Testkit can be adjusted even to monolith architecture when I mock persistence layer.

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

    Tldr. Just do integration contract testing using tools like Pact. Thanks

  • @y.c.breddy3153
    @y.c.breddy3153 3 роки тому +1

    Which tool is used for micro services testing sir

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

      I show different approaches here. Which one are you talking about? The teskits aren't a generic tool, and depends on how you write your microservices, usually it'll be the same tool.

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

    awesome video thanks

  • @abhilashbandi3866
    @abhilashbandi3866 4 роки тому +1

    Doesnt testkit leak the implementation to the consumers? Like isActive?

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

      This talk is about the different alternatives. The idea is to give a closed Testkit without the consumer knowing the internal and being able to change the internals while the consumer can still run the tests and this will allow us to know if anything is broken.

  • @АртемАрте-г5х
    @АртемАрте-г5х 4 роки тому

    17:22 this is not boom. And everything is Ok with test doubles. You just forgot to add test for case then user is blocked, find this place and fix it. You had to add this test to client service (method renderConfigurationPage ), see what it returns and repeat this result in your main e2e.
    So This is not about approach this is about lack of experience in tests and wrong mocked data.

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

      The idea is that this logic will be implemented once by the service provider and not by each one of the clients.

    • @АртемАрте-г5х
      @АртемАрте-г5х 3 роки тому

      @@MaximNovak what logic are you taking about, which should be implemented by provider?

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

      @@АртемАрте-г5х The logic meant here is: after a user has been blocked it cannot be queried any more. When done solely with the stubs, everyone who configures these stubs is supposed to configure this interplay for his/her test cases. Even worse, if after some time, the service provider changes the logic (i.e. the user data can be queried even if the user itself is blocked) everyone will have to reconfigure his stubs configurations