Skip to content

unrecognized arguments when using "-p" option #6963

@deogo

Description

@deogo

Windows 10
piplist.txt

using Wing IDE to run tests causes error

ERROR: usage: --html=report.html [options] [file_or_dir] [file_or_dir] [...]
--html=report.html: error: unrecognized arguments: --verbose
inifile: None
rootdir:

<ExitCode.USAGE_ERROR: 4>

i've found that it uses following pre-arguments
our_args=['-s', '-p', 'no:terminal']
then adds args user pass, so the resulting args may look like
finargs = ['-s', '-p', 'no:terminal', '--html=report.html', '--alluredir=allure-result', '--verbose', '--durations=1', '--numprocesses=1', '<suit_path>']
and execution code is
pytest.main(args=finargs)
which end with error
also i've found that removing '-p', 'no:terminal' solves the problem
and unfortunately there is no alternative for "-p" to use like --p=no:terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previously

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions