Closed andrmuel closed 3 years ago
This seems to make a lot of sense.
But not sure when I'll be able to look into it. If you're keen to write a PR, you're welcome to.
I have created a PR separately. I'm afraid I'm rather limited in regards to time as well (and additionally in regards to knowledge about pytest), so I'm not too sure if it makes sense, and I have only tested it superficially.
Hi
Would it be possible to add support for
record_property()
, so that key/values stored withrecord_property()
end up in the JSON report?I'm aware the same thing is already possible via
json_metadata
, butrecord_property()
has the advantage that it is independent of the reporter, and since it is part ofpytest
, tests can still run if someone doesn't havepytest-json-report
installed.