From ed72915f1a6e748fa8b7ab954e6611c15995ad41 Mon Sep 17 00:00:00 2001 From: Pushkar Sharma Date: Thu, 15 Dec 2022 15:00:48 -0800 Subject: [PATCH] Added collection-config-file --- cafy_pytest/plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cafy_pytest/plugin.py b/cafy_pytest/plugin.py index 67404ff..5c7e604 100644 --- a/cafy_pytest/plugin.py +++ b/cafy_pytest/plugin.py @@ -172,6 +172,11 @@ def pytest_addoption(parser): type=lambda x: is_valid_param(x, file_type='selective_test_file'), help='Filename of your selective testcases') + group.addoption('--collection-config-file', action='store', dest='collection_config_file', + metavar='collection_config_file', + type=lambda x: is_valid_param(x, file_type='collection_config_file'), + help='Filename of the collection config') + group.addoption('--commit-check', dest='commit_check', action='store_true', help='Variable to set commit check option, default is False') @@ -335,6 +340,7 @@ def pytest_configure(config): CafyLog.topology_file = config.option.topology_file CafyLog.test_input_file = config.option.test_input_file CafyLog.tag_file = config.option.tag_file + CafyLog.collection_config_file = config.option.collection_config_file CafyLog.mongomode=config.option.mongo_mode CafyLog.giso_dir = config.option.giso_dir script_list = config.option.file_or_dir