📖 What is Defect Density?
Defect Density is a metric calculated by dividing the total number of defects by the size of the software component or system. It is used to identify unreliable components and guide targeted testing.
"This is a classic metric used to evaluate software quality. High defect density in a specific module indicates it may need a rewrite or intensive exploratory testing."
📚 Certification: Certified Tester Foundation Level (CTFL-v4.0)
🔑 What are the Key Concepts of Defect Density?
- ▸ Calculated as the number of defects per unit of software size (e.g., lines of code or function points).
- ▸ Helps pinpoint highly problematic modules that require extra testing or refactoring.
- ▸ Used as an indicator of software reliability and quality.
🎯 How does Defect Density appear on the CTFL-v4.0 Exam?
A question asking how to determine which module is the most unreliable given the number of defects and the size of each module.
Identifying the metric used to justify intensive testing on a specific component.
❓ Frequently Asked Questions
How is defect density calculated?
It is calculated by dividing the total number of confirmed defects by the size of the software module (e.g., defects per 1,000 lines of code).
What action should be taken if a module has a very high defect density?
The module should be subjected to more rigorous testing, such as exploratory testing, and may even be recommended for a complete rewrite.