0.2.0 • Published 9 months ago

tftest-to-junitxml v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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

  1. Generate the terraform test log
  terraform test -json | tee test-output.log
  1. 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
0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago