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

Allow passing arguments to runSuiteByInstances #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tp86
Copy link

@tp86 tp86 commented Mar 23, 2023

This allows passing multiple arguments to runSuiteByInstances explicitly, without parsing command line. If no arguments are passed, it will still parse command line arguments.

It should ease making test runners that accept (different) arguments on the command line themselves and pass them to runSuiteByInstances.

Currently, runSuiteByInstances accepts commandLineArguments as its second parameter, but it allows only for one value to be passed. If you try to give it more values (like '--exclude', 'something') it will error as only first value is passed to function and command line option is missing value. Passing table of arguments doesn't help either, because initFromArguments accepts multiple values and wraps them in additional table which breaks parsing. To pass different arguments than those provided in command line, you have to modify arg table.

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.

1 participant