- What is Unit Testing?
Testing specific parts of the code in a program.
- Refactoring means that you change and (hopefully) improve the internal structure of the code without changing the behaviour of the code. For example, developers may change a piece of code in order to make the code run faster but still perform the same task. Why is unit testing important for refactoring?
You need to test the unit to ensure that it is performing the same task as intended, without other ramifications.
- How does Unit Testing help the bottom-up testing approach?
It makes integration much easier because by testing each individual unit, you can more quickly isolate errors in the program as a whole.