Closed HelloGrayson closed 8 years ago
Currently we have to get a assert and fails object at the top of every test:
assert
fails
func Run(t crossdock.T) { assert := crossdock.Assert(t) fatals := crossdock.Fatals(t) // ... assert.Equal(100, 100) fatals.NoError(err) }
Instead, we should aim to feel a bit more like other testing apis:
import ( "github.com/yarpc/yarpc-go/crossdock-go/assert" "github.com/yarpc/yarpc-go/crossdock-go/fatals" ) func Run(t crossdock.T) { assert.Equal(t, 100, 100) fatals.NoError(t, err) }
@abhinav think its doable? Even if we take on a good deal of clutter in crossdock-go, I think its worth it to give people a consistent experience.
crossdock-go
Moved to https://github.com/crossdock/crossdock-go/issues/3
Currently we have to get a
assert
andfails
object at the top of every test:Instead, we should aim to feel a bit more like other testing apis: