Pytest Django and Django Rest Framework: 6 - Code Coverage (pytest-cov)

preview_player
Показать описание
This tutorial concentrates on installing pytest-cov and configuring it for django projects

The Kenyan Engineer Channel is purely dedicated to delivering quality content on programming tutorials that focuses on topics that I find Interesting, under-discussed or often misinterpreted because of lack of tutorials. I love python, Django, React Native & Aircraft Design and most of my work will revolve around this.

I also do this work as part time and I plan on NEVER charging for my work in any form or shape. However, I'd like to continuously improve on the quality of my recordings and I plan on setting up a studio. Consider supporting me in the link above.
Рекомендации по теме
Комментарии
Автор

Vipi Geoffrey. What a great tutorial! congrats

enockkoech
Автор

Hello, I cant make a xml file report file ( like html folder) for sonarqube, I have every time zero percent coverage and I dont know why. can you make a video ? thanks

dalinefissi
Автор

can you show, how to use Coverage.py API to automatically generate the coverage report?

unnimanu
Автор

Hi, Greetings
Your lectures are really awesome and I am facing a problem regarding importing data to test base.

@pytest.fixture(scope = 'session')
def clone_dev_db():
from api.import_db import clone_dev_db
clone_dev_db.clone()

where clone() does cloning from actual db to test db.
Issue is this clone is calling before the test database is created.
Help me with the solution, Thanks in advance.

damureddy