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 args to BaseTest.setup_class() via cmd line #502

Open
ktkopone opened this issue Sep 20, 2018 · 1 comment
Open

Allow passing args to BaseTest.setup_class() via cmd line #502

ktkopone opened this issue Sep 20, 2018 · 1 comment

Comments

@ktkopone
Copy link

At the moment, the only way to get custom args into the BaseTest appear to be setting TestParams in the config file, or hacking them in with global vars.

It would be nice if custom args specified via command line or generated in the parent script could be passed into the test_runner.main() call and from there into BaseTest.setup_class() (and/or any other ways of getting args into BaseTest that come to mind).

@xpconanfan
Copy link
Collaborator

This can be done today already.
If you are calling TestRunner APIs directly in your own suite, you can already do this by adding more logic in argparse block in your own suite.

In this particular issue, we will track implementing this for the default entry point of test_runner.main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants