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
SMARTY DISCLAIMER: Subject to the terms of the associated license agreement, this software is freely available for your use. This software is FREE, AS IN PUPPIES, and is a gift. Enjoy your new responsibility. This means that while we may consider enhancement requests, we may or may not choose to entertain requests at our sole and absolute discretion.
GoConvey is awesome Go testing
Welcome to GoConvey, a yummy Go testing tool for gophers. Works with go test. Use it in the terminal or browser according to your viewing pleasure.
GoConvey supports the current versions of Go (see the official Go
release policy). Currently
this means Go 1.16 and Go 1.17 are supported.
Features:
Directly integrates with go test
Fully-automatic web UI (works with native Go tests, too)
Huge suite of regression tests
Shows test coverage
Readable, colorized console output (understandable by any manager, IT or not)
package package_name
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
funcTestSpec(t*testing.T) {
// Only pass t into top-level Convey callsConvey("Given some integer with a starting value", t, func() {
x:=1Convey("When the integer is incremented", func() {
x++Convey("The value should be greater by one", func() {
So(x, ShouldEqual, 2)
})
})
})
}