https://github.com/stesla/gospecify
A BDD library for Go
https://github.com/stesla/gospecify
Last synced: 8 months ago
JSON representation
A BDD library for Go
- Host: GitHub
- URL: https://github.com/stesla/gospecify
- Owner: stesla
- License: mit
- Created: 2009-11-20T06:34:29.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-10-18T02:38:16.000Z (about 14 years ago)
- Last Synced: 2024-10-25T05:25:01.699Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 280 KB
- Stars: 52
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: COPYING
Awesome Lists containing this project
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / Testing Frameworks)
- awesome-go - gospecify - A BDD library for Go - ★ 50 (Testing)
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / Advanced Console UIs)
- awesome-go-extra - gospecify - 11-20T06:34:29Z|2011-10-18T02:38:16Z| (Testing / Testing Frameworks)
- awesome-go-cn - gospecify
- awesome-go-cn - gospecify
- awesome-go-plus - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec.  (Testing / Testing Frameworks)
- fucking-awesome-go - :octocat: gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. :star: 51 :fork_and_knife: 4 (Testing / Advanced Console UIs)
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / HTTP Clients)
- awesome-go - gospecify - | - | - | (Testing / HTTP Clients)
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / HTTP Clients)
- awesome-go-with-stars - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / Testing Frameworks)
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / Testing Frameworks)
- awesome-Char - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / HTTP Clients)
- zero-alloc-awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / HTTP Clients)
- awesome-go-cn - gospecify
- awesome-go - gospecify - This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec. (Testing / HTTP Clients)
README
# gospecify
This provides a BDD syntax for testing your Go code. It should be familiar to anybody who has used libraries such as rspec.
## Installation
The Makefile assumes that you have the environment variables that are typically set for using the Go language (GOROOT, GOARCH, GOOS, and optionally GOBIN). Please refer to the GO installation instructions (http://golang.org/doc/install.html) for more information on properly setting them.
Once those variables are set you can:
$ make test
$ make install # This will install the specify script in $HOME/bin
$ make install GOBIN=$GOBIN # This will install the specify script in $GOBIN
## Usage
Take a look at src/example_spec.go for a simple example of how to write specifications using gospecify. Just put the code in package main and import your own code in. You can then use the specify command to compile and run your specs.
$ specify *_spec.go
Or if you need to specify a package path you can do this:
$ specify -I/path/to/pkg *_spec.go
You can look at src/Makefile to see how gospecify runs the command to test itself.
## Contributing
Contributions are always welcome. Just clone the git repo and hack away. You can submit pull requests or email me patches.
* GitHub: http://github.com/stesla/gospecify
* Email: samuel.tesla@gmail.com
Happy Testing!