This project will be incomplete without having tests to ensure the code works as expected which helps to ensure stability and assurance of code quality.
The testing approach that I felt might be convenient for this type of application is to assert that the input and output are consistent with the arguments passed.
Test cases should exist for the following scenarios:
When the image file path is invalid for handling compressing a single image
When the images file path is invalid for handling compressing images in a directory
When an incorrect value is passed for the compression level
This project will be incomplete without having tests to ensure the code works as expected which helps to ensure stability and assurance of code quality.
The testing approach that I felt might be convenient for this type of application is to assert that the input and output are consistent with the arguments passed.
Test cases should exist for the following scenarios: