Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par Mohammad Shalabi , Cheif architect , Esatrata
Date de publication: 2014/09/23
Mohammad Shalabi
par 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
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?