Skip to content

Develope1#759

Open
ViktorLataYaPracticum wants to merge 14 commits intoYandex-Practicum:mainfrom
ViktorLataYaPracticum:develope1
Open

Develope1#759
ViktorLataYaPracticum wants to merge 14 commits intoYandex-Practicum:mainfrom
ViktorLataYaPracticum:develope1

Conversation

@ViktorLataYaPracticum
Copy link
Copy Markdown

Задание 1: Юнит-тесты

Автотесты для проверки программы, которая помогает заказать бургер в Stellar Burgers

Реализованные сценарии

Созданы юнит-тесты, покрывающие класс Burger

Процент покрытия 100% (отчет: htmlcov/index.html)

Структура проекта

  • praktikum - пакет, содержащий код программы
  • tests - пакет, содержащий тесты, разделенные по классам. Например, bun_test.py, burger_test.py и т.д.

Запуск автотестов

Установка зависимостей

$ pip install -r requirements.txt

Запуск автотестов и создание HTML-отчета о покрытии

$ pytest --cov=praktikum --cov-report=html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant