tag | 99f62659ae5ce7b3651a39f0ef88d910d87a9845 | |
---|---|---|
tagger | Michael Whatcott <mdwhatcott@gmail.com> | Thu Nov 07 17:49:16 2013 |
object | 323544673baf0a7c063f31c496fc6155100ae251 |
Redesigned server:
commit | 323544673baf0a7c063f31c496fc6155100ae251 | [log] [tgz] |
---|---|---|
author | Michael Whatcott <mdwhatcott@gmail.com> | Thu Nov 07 17:22:52 2013 |
committer | Michael Whatcott <mdwhatcott@gmail.com> | Thu Nov 07 17:22:52 2013 |
tree | 6b8dd52838be58514f876c7bddab08a621322f9f | |
parent | 137ac0aa0c110c9b1ea598a985080f5a31679bd5 [diff] |
Removed legacy (prototype) server.
Welcome to GoConvey, a yummy Go testing tool for gophers. Works with go test
. Use it in the terminal or browser according your viewing pleasure.
Features:
go test
Menu:
$ go get github.com/smartystreets/goconvey
Make a test, for example:
func TestSpec(t *testing.T) {
var x int
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)
})
})
})
}
Start up the GoConvey web server at your project's path:
$ $GOPATH/bin/goconvey
Then open your browser to:
http://localhost:8080
There you have it. As long as GoConvey is running, test results will automatically update in your browser window. The design is responsive, so you can squish the browser real tight if you need to put it beside your code.
The web UI supports traditional Go tests, so use it even if you're not using GoConvey tests.
Just do what you do best:
$ go test
Or if you want the output to include the story:
$ go test -v
go test -v
):Tests pass:
Test fail:
Test panic: