This week I started my first project-based technical task. I worked on writing a test file of a Pick function for the mobile app. During the process of testing I explored and searched for the following practices when performing this task.
I faced multiple hiccups during my search looking for solutions to the difficulties I had encountered during implementing an integration test. One of the problems I needed to handle is testing a function that uses an API, upon searching for solutions, I learned more about mocking and the way it works by isolating and only focusing on the code under test and sending the data without interacting with the API. Mr. Peter was a great mentor and helped me A LOT to get the job done.
The quality of the code I had at hand was not optimal and caused a lot of issues that I met when I was trying to test the code. In an effort to solve this, I learned how to debug the code by using the breakpoints points in Visual Studio Code which enable me to follow the sequence of the coding lines and give me the ability to pause the debugging process in order to check variables states and current value.
In conclusion, this week was full of learning and testing. I learned a lot during this week about testing and the steps that must be followed to do a unit test for a certain function. Learning how to utilize an important tool such as breakpoints was also beneficial and will aid me in my future testing efforts.
