Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture test failures #181

Open
dkirrane opened this issue Mar 26, 2024 · 0 comments
Open

Capture test failures #181

dkirrane opened this issue Mar 26, 2024 · 0 comments

Comments

@dkirrane
Copy link

dkirrane commented Mar 26, 2024

Is there a way to capture the reasons for test failure in the report.xml?
e.g. testify/assert failures

For example, I want to see all assert errors in the report:

	expect2 := fmt.Sprintf("Hello foo %s", uniquePrefix)
	assert.Equal(t, expect2, output)

go test log

    my_test.go:197:
        	Error Trace:	...my_test.go:59
        	Error:      	Not equal:
        	            	expected: "Hello foo Bef0Ag"
        	            	actual  : "Hello Bef0Ag"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-Hello foo Bef0Ag
        	            	+Hello Bef0Ag
        	Test:       	TestHelloWorld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant