Applying TDD when the application is 100% CRUD

后端 未结 9 1908
梦谈多话
梦谈多话 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:39

    "The only purpose of the app is basically to pull a list of contacts"

    Okay. Test that. What does "pull" mean? That sounds like "logic".

    " display them on a page"

    Okay. Test that. Right ones displayed? Everything there?

    " display a form to send a message,"

    Okay. Test that. Right fields? Validations of inputs all work?

    " and the like."

    Okay. Test that. Do the queries work? Find the right data? Display the right data? Validate the inputs? Produce the right error messages for the invalid inputs?

提交回复
热议问题