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

Make informative output for pytest --help #175

Open
NickVolynkin opened this issue Mar 13, 2024 · 1 comment
Open

Make informative output for pytest --help #175

NickVolynkin opened this issue Mar 13, 2024 · 1 comment
Labels
bug Something isn't working pytest

Comments

@NickVolynkin
Copy link
Contributor

qase-pytest==5.0.5 returns the following output for pytest --help:

 log_level (string):   Default value for --log-level
  log_format (string):  Default value for --log-format
  log_date_format (string):
                        Default value for --log-date-format
  log_cli (bool):       Enable log display during test run (also known as "live logging")
  log_cli_level (string):
                        Default value for --log-cli-level
  log_cli_format (string):
                        Default value for --log-cli-format
  log_cli_date_format (string):
                        Default value for --log-cli-date-format
  log_file (string):    Default value for --log-file
  log_file_level (string):
                        Default value for --log-file-level
  log_file_format (string):
                        Default value for --log-file-format
  log_file_date_format (string):
                        Default value for --log-file-date-format
  log_auto_indent (string):
                        Default value for --log-auto-indent

In fact, all help strings are available in qase-pytest/src/qaseio/pytest/options.py, but not passed to the output. We should fix it.

@NickVolynkin NickVolynkin added bug Something isn't working pytest labels Mar 13, 2024
@gibiw
Copy link
Contributor

gibiw commented Jun 18, 2024

@NickVolynkin if you scroll down then you will see our options in the output:

qase:
  --qase-mode=QASE_MODE
                        Define Qase reporter mode: `off`, `report` or `testops`
  --qase-fallback=QASE_FALLBACK
                        Define Qase reporter fallback mode: `off`, `report` or `testops`
  --qase-environment=QASE_ENVIRONMENT
                        Define environment slug from TestOps
  --qase-debug=QASE_DEBUG
                        Enable debug mode
  --qase-execution-plan-path=QASE_EXECUTION_PLAN_PATH
                        Path to file with execution plan
  --qase-testops-project=QASE_TESTOPS_PROJECT
                        Project code in Qase TestOps
  --qase-testops-api-token=QASE_TESTOPS_API_TOKEN
                        API token for Qase TestOps
  --qase-testops-api-host=QASE_TESTOPS_API_HOST
                        API host for Qase TestOps
  --qase-testops-plan-id=QASE_TESTOPS_PLAN_ID
                        Test Plan ID in Qase TestOps
  --qase-testops-run-id=QASE_TESTOPS_RUN_ID
                        Test Run ID in Qase TestOps
  --qase-testops-run-title=QASE_TESTOPS_RUN_TITLE
                        Define title for autocreated Test Run. If not set, will be used autogenerated title
  --qase-testops-run-description=QASE_TESTOPS_RUN_DESCRIPTION
                        Define description for autocreated Test Run
  --qase-testops-run-complete=QASE_TESTOPS_RUN_COMPLETE
                        Complete run after tests execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pytest
Projects
None yet
Development

No branches or pull requests

2 participants