Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 863 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 863 Bytes

Convey is awesome Go testing

Build Status GoDoc

Installation

$ go get github.com/wallclockbuilder/convey

[Quick start]

Make a test, for example:

func TestSpec(t *testing.T) {

	// Only pass t into top-level Convey calls
	Convey("Given some integer with a starting value", t, func() {
		x := 1

		Convey("When the integer is incremented", func() {
			x++

			Convey("The value should be greater by one", func() {
				So(x, ShouldEqual, 2)
			})
		})
	})
}

Just do what you do best:

$ go test

Or if you want the output to include the story:

$ go test -v