Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

100% CODE COVERAGE - Think You're Done? Think AGAIN.☝

Автор: ArjanCodes

Загружено: 2021-02-25

Просмотров: 41924

Описание:

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

This video explains the basics of unit testing, test-driven development, and code coverage in Python. The "holy grail" of unit testing is to reach 100% code coverage. However, code coverage is not a perfect metric, as you'll see in this video. I'll go through an example in Python showing you how to add unit tests, interpret coverage reports, and how the process of test-driven development works. And then I'll end the video with covering two mistakes I've seen developers make when writing unit tests and interpreting their coverage reports.

You can find the code I worked on in this episode in my GitHub repository: https://github.com/arjancodes/betterp...

🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/

🔖 Chapters:
0:00 Intro
1:56 Explaining the example
3:50 Setup unit testing
6:10 Add unit tests for compute_tax
10:43 Write unit tests for can_lease (TDD)
13:06 Write can_lease implementation
14:06 Solving the bug in compute_tax
15:50 Mistakes to avoid
17:41 Final thoughts
18:32 Outro

100% CODE COVERAGE - Think You're Done? Think AGAIN.☝

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

How To Write Unit Tests For Existing Python Code // Part 1 of 2

How To Write Unit Tests For Existing Python Code // Part 1 of 2

If You Use Dataclasses, You Should Know These 7 Features

If You Use Dataclasses, You Should Know These 7 Features

Test-Driven Development In Python // The Power of Red-Green-Refactor

Test-Driven Development In Python // The Power of Red-Green-Refactor

Property-Based Testing In Python: Hypothesis is AWESOME

Property-Based Testing In Python: Hypothesis is AWESOME

The Right Way to Use AI for Writing Maintainable Code

The Right Way to Use AI for Writing Maintainable Code

Software Testing

Software Testing

Why the Plugin Architecture Gives You CRAZY Flexibility

Why the Plugin Architecture Gives You CRAZY Flexibility

Day 120 – Vibe Coding an App Until I Make $1,000,000 | Revenue: $3,106.90

Day 120 – Vibe Coding an App Until I Make $1,000,000 | Revenue: $3,106.90

How to Write Great Unit Tests in Python

How to Write Great Unit Tests in Python

Design Patterns

Design Patterns

The REAL Reason Going To Mars Will NEVER Happen

The REAL Reason Going To Mars Will NEVER Happen

Теория тестирования ПО + несколько менее очевидных методов тестирования

Теория тестирования ПО + несколько менее очевидных методов тестирования

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

Почему вам стоит задуматься об архитектуре программного обеспечения на Python 💡

Почему вам стоит задуматься об архитектуре программного обеспечения на Python 💡

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

The U.S. Didn’t Invade Venezuela for Oil — This Is the Return to Imperialism

The U.S. Didn’t Invade Venezuela for Oil — This Is the Return to Imperialism

Шаблон повторных попыток: секрет отказоустойчивого кода на Python

Шаблон повторных попыток: секрет отказоустойчивого кода на Python

Wyjaśniamy o co chodzi z Grenlandią. Czy naprawdę może wybuchnąć wojna USA-Dania?

Wyjaśniamy o co chodzi z Grenlandią. Czy naprawdę może wybuchnąć wojna USA-Dania?

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Automated Testing in Python with pytest, tox, and GitHub Actions

Automated Testing in Python with pytest, tox, and GitHub Actions

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com