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

Error output from testify doesn't use goblin theme #101

Open
shasaur opened this issue Apr 25, 2021 · 1 comment
Open

Error output from testify doesn't use goblin theme #101

shasaur opened this issue Apr 25, 2021 · 1 comment

Comments

@shasaur
Copy link

shasaur commented Apr 25, 2021

When using the testify framework, I would expect to see the output match the style in the readme (mocha-like) but instead there it kinda looks verbose, uncoloured, and doesn't register as an error in Goblin. Like this:

image

I was wondering if this is by design / not implemented / I am doing something very wrong.

Here is the code for reference:

func TestItem(t *testing.T) {
	g := Goblin(t)

	g.Describe("Item CRUD", func() {
		g.Describe("Should read", func() {
			g.It("An item by name ", func() {
				assert.Equal(t, "expected", "actual")
			})
		})
	})
}
@shasaur
Copy link
Author

shasaur commented Jul 28, 2021

3 months later I figured it out lmao. You just need to substitute the Golang test framework with the Goblin framework. Knowing this would have saved me some time and made me use this framework more often a longer time ago. So I opened an MR to document this so others don't make the same mistake: #107

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