mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-22 10:22:20 -04:00
* Refactor JUnit XML output to use new concept of an Artifact * Move JUnit-related code into new `artifact` package * Refactor Artifact's Save method to return diagnostics, update comments Previously TestJUnitXMLFile implemented the View interface, which cannot return errors. Now it's not a View any more we can simplify things. * Make junitXMLTestReport output deterministic by iterating over a slice instead of a map, add test * Provide sources to junitXMLTestReport, allowing complete error messages in the XML We need to ensure that artifact.NewTestJUnitXMLFile is called once the config Loader is available as a non-nil pointer * Whitespace * Add some test coverage for JUnit XML output for `terraform test` * Refactor how file is saved, add tests * Move XML structs definitions outside of `junitXMLTestReport` * Fix nil pointer bug * Add missing file headers * Refactor comparison of byte slices * Rename package to `junit`, rename structs to match * Add a test showing JUnit output when a test is skipped by the user |
||
|---|---|---|
| .. | ||
| json | ||
| testdata | ||
| apply.go | ||
| apply_test.go | ||
| cloud.go | ||
| hook_count.go | ||
| hook_count_test.go | ||
| hook_json.go | ||
| hook_json_test.go | ||
| hook_ui.go | ||
| hook_ui_test.go | ||
| init.go | ||
| init_test.go | ||
| json_view.go | ||
| json_view_test.go | ||
| modules.go | ||
| operation.go | ||
| operation_test.go | ||
| output.go | ||
| output_test.go | ||
| plan.go | ||
| plan_test.go | ||
| refresh.go | ||
| refresh_test.go | ||
| show.go | ||
| show_test.go | ||
| state_locker.go | ||
| test.go | ||
| test_test.go | ||
| validate.go | ||
| validate_test.go | ||
| view.go | ||