Should we test add/edit and delete functions created with Cake bake command?
Should we check them too? Or we have to assume they work well.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would be best to test every aspect of your app, even auto-generated functions like those on bake. However, this doesn’t mean you need to test things that already have tests (i.e., core functionality).
A good reason for this is that if you end up changing that code down the road, and the test fails, you are immediately aware of it and can fix it. This avoids having to remember what you have and haven’t written tests for.