Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added collection-config-file #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cafy_pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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
Expand Down