2 ms·
Perhaps the key with testing strategy is to define what to test. As pointed out, code coverage is not a good metric when followed blindly. I believe there are
by xiwenc 3y ago
Perhaps the key with testing strategy is to define what to test.
As pointed out, code coverage is not a good metric when followed blindly.
I believe there are at minimum 2 levels that need testing. First is unit testing. It should ensure complex functions work as intended as a unit.
Second, for your core functionalities, have e2e test cases. This ensures your product actually works for the end user.
Unit testing should make up the biggest part of the test suites. E2e should be kept at minimum but yet satisfies the quality requirements.
Few years back i wrote a bit about this based on the AAA method: https://cinaq.com/blog/2019/05/05/simple-high-value-tests-with-python-flask/ https://cinaq.com/blog/2019/05/05/simple-high-value-tests-wi...
The core idea is to determine what are high value tests.