You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I would expect the report.xml generated by terratest_log_parser to contain the reason for the test failure.
However, terratest_log_parser loses the assertion results
To Reproduce
go test -count=1 -v | tee test_output.log
The above command created the following lines in the test_output.log:
--- FAIL: TestHelloWorldTerraform (0.74s)
terraform_hello_world_test.go:193:
Error Trace: /mnt/c/terratest/terraform_hello_world_test.go:193
Error: Not equal:
expected: "Hello foo eRcjAe"
actual : "Hello eRcjAe"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-Hello foo eRcjAe
+Hello eRcjAe
Test: TestHelloWorldTerraform
FAIL
exit status 1
terratest_log_parser -testlog test_output.log -outputdir test_output --log-level info
The above command created the following report.xml:
Upon further investigation, I discovered that we are using the github.com/jstemmer/go-junit-report/parser package to generate the XML report. Unfortunately, this package does not offer an option to include assertion error details, and it appears that we are unable to do so either. There is an open issue related to this on GitHub (#181), which was created on March 26, but it has not yet been addressed. jstemmer/go-junit-report#181
I'll close this issue as there's nothing we can do on this yet. Let's reopen this when this ticket is addressed.
Describe the bug
I would expect the report.xml generated by
terratest_log_parser
to contain the reason for the test failure.However, terratest_log_parser loses the assertion results
To Reproduce
go test -count=1 -v | tee test_output.log
The above command created the following lines in the test_output.log:
terratest_log_parser -testlog test_output.log -outputdir test_output --log-level info
The above command created the following report.xml:
Expected behavior
I would expect the report.xml to include
TestHelloWorldTerraform
Versions
The text was updated successfully, but these errors were encountered: