-
Notifications
You must be signed in to change notification settings - Fork 19
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
JSON #15
Comments
Hi @CScharer, As stated in the README:
One of the use cases is being able to read the reports in real time, which would not be possible if we formatted it as a list, because the list would only be fully formed (the ending Closing this for now, feel free to follow up with more questions. |
This plugin can't include an option to convert JSON Lines in JSON once the tests have finished? That would be very helpful to make documents in an automated way, for example, a summary with the results in MarkDown format. Or is it not very different to process both formats? Sorry, I don't have much experience (I apologize for my lack of ability regarding the lexicon of the English language) |
It's not very different indeed. All you would do is something like: with open("pytest.jsonl") as f:
for line in f:
rep = json.load(line)
# do something with the data in 'rep' |
This is not an issue, but rather a question/request. Why not have it write out a json file with a list of the json rather than a log file with bunch of lines of dictionaries?
The text was updated successfully, but these errors were encountered: