📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

tftest-to-junitxml

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tftest-to-junitxml

Parses TF test json output and translates it into JUnit XML

0.2.0
latest
Version published
Maintainers
0
Created

Terraform Test to JUnit XML

A handy command line tool to translate terraform test json logs into compatible JUnit XML

This tool is particularly handy when wanting to report on test results in Azure DevOps pipelines using the PublishTestResults@2 task.

Currently this functionality exists only in the experimental terraform CLI tool and at time of writing seemingly has been abandoned.

Quick Start

  • Generate the terraform test log
  terraform test -json | tee test-output.log
  • Parse the log file
npx tftest-to-junitxml ./test-output.log

Note: By default the output file name is TEST-terraform.xml, this will be picked up by default when using the PublishTestResults@2 tas in Azure DevOps pipelines. It can be modified by using the --output [OutputFileLocation] flag

TODO

  • Automate npm publishing
  • Include test suite

FAQs

Package last updated on 03 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts