In Production By customers, organization has to spend lot of time and effort as the new version has to be released
If we find bugs and if they are reported by our testing teams in any of the test environment, This would be better than bugs found at production
If the bug is found on the developers sytem, this would be best case as developer will fix it immedietly and cost of fixing bug is much low
Organization would expect bugs to be found in earlier stages of SDLC
Unittest is a software testing method in which individual components of the program called as unit are tested independently.
Unittesting is mostly done by programmers who write the programs.
Unittesting can be done
by manually inspecting/debugging the code
Automated tests => these tests run every time on the build servers and give feedback to the developer
Approaches to be followed:
Regression: This is an testing approach teo ensure new changes will not break the existing functionality
Unit Tests should be executed on every developers system during changes are being made and also by the build server which tries to build the python packages, executes unit tests and shares the feedback & many more