Skip to content

Include all.log.html enable/disable command line arg#139

Open
jhanm12 wants to merge 1 commit intomasterfrom
Jhanm-Optional-FilterLogs
Open

Include all.log.html enable/disable command line arg#139
jhanm12 wants to merge 1 commit intomasterfrom
Jhanm-Optional-FilterLogs

Conversation

@jhanm12
Copy link
Copy Markdown
Collaborator

@jhanm12 jhanm12 commented Oct 10, 2024

Include all.log.html enable/disable command line arg

  • Added a new arg, to enable/disable the creation of the all.log.html file creation

@jhanm12
Copy link
Copy Markdown
Collaborator Author

jhanm12 commented Oct 10, 2024

Test Logs:

Without the --all-log-html arg :: http://allure.cisco.com/ws/jhanm-sjc/cafykit/work/archive/test_cydiff_20241010-072025_p2847338/reports/index.html (all.log.html file not generated in work_dir)

With the --all-log-html arg :: http://allure.cisco.com/ws/jhanm-sjc/cafykit/work/archive/test_cydiff_20241010-071940_p2846931/reports/index.html (all.log.html file generated in work_dir)

Comment thread cafy_pytest/plugin.py
group.addoption('--cafygta', dest='cafygta', action='store_true',
help='Variable to enable cafy gta, default is False')

group = parser.getgroup('Generate all.log.html - Enable/Disable')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a specific group for CLI args. Also, every added arg makes it harder for users to understand the help output - is this really necessary? Could it be added as an ini config option instead?

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.

3 participants