Skip to content

Capture test failures #181

@dkirrane

Description

@dkirrane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions