If the testing team says they have 100% test coverage by touching all lines ofĬodes, it does not ensure the code quality but the code quality will depend on Interesting when we speak about code quality in terms of test coverage. The code quality but still there are many other aspects which the testing teamĬonsideration about the number of good tests a well as number of negative testsįor any project on top of the test coverage. This test coverage will be directly proportional to Generally, if the test coverageĮxceeds 80% then the test team concludes that they have enough test coverage toĮnsure the code quality. Say X = 10,000.Įxecuted just cover 7500 lines of code. Terms of lines of code with the help of following formula. Therefore, the test coverage should be evaluated in The answer could be that it cannot be ensured but functionality wise Testing team execute these test cases, the system ensure that all lines ofĬodes for the given program has executed successfully or covered during the Test cases are actually covering the line of codes i.e. This percentage score of test coverage in the correct way? The test teamĭesigns the test cases based on the functional requirement document but those Speaks of percentage of test coverage for a particular project but are they evaluating Let’s understand what is test coverage and how it is evaluated in the general terms. These two aspects of testing are interrelated but there is no direct formula to evaluate in terms of each other. Code quality and test coverage metrics are two important metrics which comes in play during software testing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |