Replies: 1 comment 5 replies
-
See Calling pytest from Python code, which shows an example of passing a plugin object, on which you can implement any of the plugin hooks. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know how to call pytest.main, possible setting a long list of arguments. This is basically like calling the CLI from shell. It means that the test results are printed to stdout/stderr, and it means the output is controlled by flags.
I would like to somehow set up the test in my Python script, run the tests, and get a list of executed tests, and the result. E.g. a list of some object or maybe a dictionary.
Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions