Go-Spec is another interpretation of RSpec for the Go language. It provides a behavior driven development (BDD) framework wrapping Gotest.
Go-Spec provides a package "spec" for writing descriptive tests in Go. It also
provides a command line program gospec
for running these tests. Doing these
things, Go-Spec creates a thing wrapper over Go's "testing" package and gotest
respectively.
This is a "tutorial" project in examples/tutorial/. It's a program that does nothing but run Gospec on itself. But the tests describe and show the capabilities of Go-Spec. To run it
cd examples/tutorial
gomake
The program Gospec has its tests written using the "spec" package.
cd gospec
gospec -v
You can also look at the "spec" package
Bryan Matsuo [email protected]
Copyright (c) 2011, Bryan Matsuo. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.