ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

When you write a unit test, you will call development code APIs and methods, but when APIs contracts changes, you unit test will fail, what to do?

<p>how you can write your unit tests, so when the development code changes there contracts, you do not need to fix all your unit tests.</p>

user-image
تم إضافة السؤال من قبل Mohammad Shalabi , Cheif architect , Esatrata
تاريخ النشر: 2014/09/23
Mohammad Shalabi
من قبل Mohammad Shalabi , Solution Architect, Android, and IOS Architect , ALM New Way

you need to look at developer code from the point of legacy code. you hide legacy code complexity by using design patterns like adapter and facade. 

Gayasuddin Mohammed
من قبل Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

for the unit test, i suppose to be the code what different combinations of data that unit of code which i'm testing will suppose to take and respective outputs it had to give, based on that I had to do my unit test. if there is any changes in code, i first need to test the code which is changed. thereafter I can use the api to test the functionality of the code which is using that api. otherwise no point of bypassing it and testing. 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟