After a team member writes a piece of code how can she ensure that it works before checking it in
Answers
Answer:
After a team member writes a piece of code, and in order to ensure that his/her code shall behave properly in the integration testing, the member should perform unit testing on his piece of code by ensuring the appropriate results are given by the program.
Explanation:
In a team there are many members who do the particular portion of coding, and those code blocks are supposed to provide output, which shall be input for the code written by other team member.
Answer:
After finishing code writing, the team member should compile it before running for checking any syntax errors which are nothing but grammatical errors while writing the code.
However, it is not possible to check the logical errors until some input is given while running the code and the output is observed.
The compiler is not able to detect logical errors.