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

Feature Request: Print JSON to stdout #46

Open
jgarte opened this issue Jul 25, 2023 · 6 comments
Open

Feature Request: Print JSON to stdout #46

jgarte opened this issue Jul 25, 2023 · 6 comments

Comments

@jgarte
Copy link

jgarte commented Jul 25, 2023

From reading through the documentation I didn't see support for printing the json data to stdout. It looks like it currently only supports writing to a file. Could we better support this via a CLI flag?

See the following request proposal as well: pytest-dev/pytest#9704 (comment)

@The-Compiler
Copy link
Member

On Linux, you should be able to use /dev/stdout as filename - but I suppose it would make sense to have something more cross-platform than that.

@RonnyPfannschmidt
Copy link
Member

The to terminal option should also disable Terminal output and ensure io capture is not disabled

@jgarte
Copy link
Author

jgarte commented Jul 26, 2023

I think that it would also be cool if printing to stdout is the default.

@The-Compiler
Copy link
Member

I strongly disagree - having the reportlog output interspersed with normal pytest output sounds like it'd make that output unusable for both machines and humans.

@jgarte
Copy link
Author

jgarte commented Jul 26, 2023

I strongly disagree - ...

But do you strongly agree with me that Python is still the best programming language currently? 😜

@RonnyPfannschmidt
Copy link
Member

Python can never hope to be the best, but im very happy it's gleefully fun at solving a good chunk of my problems

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

3 participants