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

ability to "inject" data from json report into other pytest run? #93

Open
FelixSchwarz opened this issue Nov 15, 2023 · 1 comment
Open

Comments

@FelixSchwarz
Copy link

I have a main pytest suite but there is a second test suite. That second test suite also uses pytest but needs a completely different execution environment. One example might be that this second test suite is execute inside a docker container. Still for the developer I want to make test execution/reporting as easy as possible so my idea was to write some pytest hooks to trigger test execution and then use a json report to inject the results back into pytest's main session.

I think the report contains all the information I need for that but I was wondering if there is some existing "glue" code to make this happen. Is this a use case that is already covered by code in this repo?

@alexandrul
Copy link

I think your proposal is out of scope, unfortunately.
I have solved similar scenarios with a separate Python script that handles the execution and/or report processing.

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

No branches or pull requests

2 participants