Вибір, встановлення та налаштування плагіна allure для pytest - allure

Теги: # # # #

Установка allure-adaptor для # pytest

Дякую! Я спробувала це зробити ще до створення теми, але, мабуть, неправильно пишу ось цю частину py.test --alluredir [path_to_report_dir]. Ви не могли б підказати, до чого саме потрібно вказати цей шлях (я не дуже розумію, що за report_dir - це папка з тестом, або з алюром, або з плагіном, або просто нова) і як він правильно пишеться? На прикладі. Поясніть будь ласка темному людині.

У мене ось такий скрипт і працює.
py.test [назва тесту який запускаю] .py -v --assert = 'plain' --alluredir report (директорія куди покласти звіт)
allure generate / root / Pycharm / tests_pytest / report -o / root / Pycharm / tests_pytest / report (в цій директорії після проходження тесту створюється index.html і ще купа файлов.Прі відкритті index.html показується звіт в браузері.

Дякуємо!
Я пробую, ось що:
py.test test_func1.py --alluredir = report
allure generate / report / test1

По-перше, прошу вибачення за дурне питання - як в командному рядку зробити перенесення для вставки такої конструкції? Інакше команди виконуються спочатку одна, потім інша. або так і повинно бути.
По-друге, при запуску першого рядка py.test test_func1.py --alluredir = report пише мені ось що:
platform win32 - Python 3.5.2, pytest-2.9.0, py-1.4.32, pluggy-0.3.1
rootdir: C: \ Python \ python + selenium \ Тестування \ sberbank \ test, inifile:
plugins: allure-adaptor-1.7.6
collected 0 items / 1 errors

=================================== ERRORS ============== ======================
______________________ ERROR collecting test func1.py ________________________
test_func1.py:93: in
money.test_input_amount ()
c: \ users \ nsaba \ appdata \ local \ programs \ python \ python35-32 \ lib \ site-packages \ allure \ common.py: 56: in impl
with StepContext (self.allure, self.title.format (* a, ** kw)):
c: \ users \ nsaba \ appdata \ local \ programs \ python \ python35-32 \ lib \ site-packages \ allure \ common.py: 34: in enter
self.step = self.allure.start_step (self.title)
c: \ users \ nsaba \ appdata \ local \ programs \ python \ python35-32 \ lib \ site-packages \ allure \ pytest_plugin.py: 159: in start_step
self.stack [-1] .steps.append (step)
E AttributeError: 'AllureTestListener' object has no attribute 'stack'
=========================== 1 error in 3.65 seconds ================== =========
Що ж таке.

Схожі статті