У меня есть установка pytest со следующим файлом конфигурации, который я использую для интеграционных тестов:
[pytest]
addopts = -p no:python -p no:random-order --tb=short
junit_suite_name = Integration
filterwarnings =
ignore::DeprecationWarning
Цель - не загружать плагин random-order
.При локальном запуске я получаю следующее:
$ pytest -c pytest-integration.ini --junitxml=integration-tests.xml tests/integration/
======================= test session starts ===========================
platform darwin -- Python 3.6.4, pytest-3.7.2, py-1.7.0, pluggy-0.8.0
rootdir: /Users/ringods/Projects/customer/project/tests/integration,
inifile: pytest-integration.ini
plugins: cov-2.6.0, mamba-1.0.0
collected 629 items
Как и ожидалось, никаких следов плагина random-order
.Я отправил свои изменения на наш сервер сборки (Jenkins), и это вывод от Jenkins:
+ pytest -c pytest-integration.ini --junitxml=integration-tests.xml tests/integration/
===================== test session starts ========================
platform linux -- Python 3.6.3, pytest-3.7.2, py-1.7.0, pluggy-0.8.0
Test order randomisation NOT enabled. Enable with --random-order or -- random-order-bucket=<bucket_type>
rootdir: /home/centos/workspace/test-reporting-L2CS5UFPVK3I5UNI6BJIMJPWQQMDOV465LKDS2BSKJ5UXDZGAI6Q/tests/integration, inifile: pytest-integration.ini
plugins: random-order-1.0.4, cov-2.6.0, mamba-1.0.0
collected 629 items
Кажется, я не могу понять, почему плагин random-order
все еще загружен.Кто-нибудь может мне помочь?