Posts

Showing posts from May, 2023

Unit testing - how to save lot of rework

 When it comes to unit testing, it's essential to cover different aspects of a feature to ensure code integrity and identify potential impacts on other parts of the solution. Here's an improvised list of unit test cases you can consider for each feature: 1. Basic functionality: Verify that the feature executes without errors. Test the expected output against different input scenarios. Validate edge cases and boundary values. 2. Input validation: Verify that appropriate error handling and validation checks are in place. Ensure the feature gracefully handles unexpected input. 3. Error handling and exception cases: Test the feature's response to anticipated error conditions. Validate that proper error messages or exception handling mechanisms are implemented. Verify that the code recovers or fails gracefully under exceptional scenarios. 4. Integration with other components: Test the feature's interaction with dependent modules or services. Validate that the feature integra...