Enhance your python unit testing using Coverage

ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

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
IntermediateIntermedio
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

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.

Habilidades que desarrollarás

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

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  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

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.