Using Test Case Inheritance To Test Source Code Polymorphism
Definition:
Developers may implement inheritance in test cases to test source code polymorphism so that code duplication of common test methods can be reduced (i.e., following the DRY principle – “Don’t Repeat Yourself”). However, sometimes the unnecessary inheritance relationship in test cases may increase the difficulty of test maintenance and make test evolution more error-prone.
Code Example:
No code examples yet…
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring