How to generate parsable report for molecule test run?

  • I am trying to use Ansible molecule for integration testing. I am running certain checks/test using molecule and it generates html reports. My usecase is to generate report in parsable format (json or yaml), so I can parse success and failure and publish as custom metrics to my OTEL solution. So my question is how to generate Moleculre report in json or yaml format?

There isn’t an Ansible or Molecule plugin/filter to generate reports in JSON or YAML directly. However, the jc tool might help you achieve what you’re looking for.

jc converts the output of many command-line tools into structured JSON, which you can then parse for success/failure for your needs.