From the course: Tech on the Go: Building a Software Test Department
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Measuring code and test coverage
From the course: Tech on the Go: Building a Software Test Department
Measuring code and test coverage
- [Instructor] Measuring code and test coverage. Code coverage is the measure of how much code is executed with a given operation. Code coverage is typically calculated by automated test suites, which we'll discuss later on. Code coverage is reported in percentages, like 76% coverage. A higher percentage means more code was executed. Code coverage is important for a number of reasons. A higher percentage of coverage reduces the risk of bugs. Notice I said reduce, not eliminate. Like security, there is no absolute guarantee of error-free code. Code coverage highlights unused or untested code components, which can be helpful for optimization. It's also an indicator of code quality. Being able to report the code coverage indicates an interest in an effort to improve the software. Finally, code coverage is a requirement in some types of mission-critical industries, such as avionics and automotive safety. Code coverage is a…
Contents
-
-
-
A practical case for quality3m 5s
-
(Locked)
Why should you test software?3m 52s
-
(Locked)
Does the difference between bugs and defects matter?2m 19s
-
(Locked)
What is a test case?3m 4s
-
(Locked)
Measuring code and test coverage3m 44s
-
(Locked)
What kinds of tests are there?5m 31s
-
(Locked)
Manual testing for correctness3m 21s
-
(Locked)
Automated software testing for rapid feedback4m 36s
-
(Locked)
Regression testing for confidence3m 10s
-
(Locked)
The practice of exploratory testing4m 35s
-
(Locked)
Session-based testing with a group3m 53s
-
(Locked)
Linting and detecting bad code smells5m 32s
-
(Locked)
The role of security testing3m 44s
-
(Locked)
Effective bug reporting5m 14s
-
(Locked)
Building a partnership with engineering and product5m 51s
-
(Locked)
The first test engineer4m 7s
-
(Locked)
Testing as part of a CI/CD pipeline3m 26s
-
(Locked)
Scaling a test department2m 28s
-
-