From the course: GitHub Copilot for System-Level Development
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Evaluating test coverage - Github Copilot Tutorial
From the course: GitHub Copilot for System-Level Development
Evaluating test coverage
- [Instructor] When you're working with tests and when you're making progress, implementing your features, adding your features, doing the refactoring, one of the important aspects is to understand coverage. In this case, I'm going to use pytest, which is the Python test runner that I've chosen to use. This is a test runner and a test library as well. There are plugins, and in this case I'm going to use the cov plugin, which is the coverage plugin. So what is going to happen behind the scenes is going to run all the tests and then analyze what statements are covered for my test and what statements are not covered. So in here you can see a list of files with their statements which ones are missing and what is the coverage in the percentage in coverage. And you can see here that main has only 49% coverage and reformat is 50, so what does these mean? Well, it means that there is code in a reformat that, for example, that is not…