Enhance your python unit testing using Coverage

提供方
Coursera Project Network
在此指导项目中,您将:

Use coverage.py to ensure that every bit of your python code is covered by a test

Create test functions for a python class, one method and a time

Cover different aspects of your code and use the cool web interface of coverage.py to monitor your progress

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this 1-hour long project-based course, you will learn how to you can use coverage.py to ensure that every bit of your python code is covered by a test - hence the name coverage.py. You will create test functions for a python class, one method and a time. At each step, you will learn how to cover different aspects of your code and use the cool web interface of coverage.py to monitor your progress. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • Python Programming
  • Object-Oriented Programming (OOP)
  • Python Testing
  • Coverage measurement

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Understand the Theatre booking code

  2. Measure coverage for testing class methods

  3. Measure coverage of branching code

  4. Exclude code from coverage

  5. Create static and dynamic measurement contexts

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心