Skip to content

Commit

Permalink
Promote JUnit output 'terraform test' feature from experimental status
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Dec 16, 2024
1 parent e6bd282 commit 33c3051
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions internal/command/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,6 @@ func (c *TestCommand) Run(rawArgs []string) int {
view := views.NewTest(args.ViewType, c.View)
var junitXMLView *views.TestJUnitXMLFile
if args.JUnitXMLFile != "" {
// JUnit XML output is currently experimental, so that we can gather
// feedback on exactly how we should map the test results to this
// JUnit-oriented format before anyone starts depending on it for real.
if !c.AllowExperimentalFeatures {
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"JUnit XML output is not available",
"The -junit-xml option is currently experimental and therefore available only in alpha releases of Terraform CLI.",
))
view.Diagnostics(nil, nil, diags)
return 1
}
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Warning,
"JUnit XML output is experimental",
"The -junit-xml option is currently experimental and therefore subject to breaking changes or removal, even in patch releases.",
))
junitXMLView = views.NewTestJUnitXMLFile(args.JUnitXMLFile)
view = views.TestMulti{
view,
Expand Down

0 comments on commit 33c3051

Please sign in to comment.