Applying TDD when the application is 100% CRUD

后端 未结 9 1770
梦谈多话
梦谈多话 2021-01-30 04:23

I routinely run into this problem, and I\'m not sure how to get past this hurdle. I really want to start learning and applying Test-Driven-Development (or BDD, or whatever) but

9条回答
  •  日久生厌
    2021-01-30 04:35

    I am working on a pure CRUD application right now But I see lots of benefits of Unit test cases (note- I didn't say TDD)

    I write code first and then the test cases- but never too apart- soon enough though

    And I test the CRUD operations - persistence to the database as well.

    When I am done with the persistence - and move on to the UI layer- I will have fair amount of confidence that my service\persistence layer is good- and I can then concentrate on the UI alone at that moment.

    So IMHO- there is always benefit of TDD\Unit testing (whatever you call it depending on how extreme you feel about it)- even for CRUD application You just need to find the right strategy for- your application

    Just use common sense....and you will be fine.

提交回复
热议问题