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

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心