Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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
Question added by Mohammad Shalabi , Cheif architect , Esatrata
Date Posted: 2014/09/23
Mohammad Shalabi
by 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
by 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. 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.