• Stars
    star
    53
  • Rank 552,441 (Top 11 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 15 years ago
  • Updated about 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A BDD library for 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.

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.

Happy Testing!

More Repositories

1

base32

A library which provides base32 decoding and encoding.
Ruby
33
star
2

ldap

An LDAPv3 implementation for golang
Go
14
star
3

golambda

A lambda calculus interpreter written in Go
7
star
4

lambda

A small lambda calculus interpreter
OCaml
6
star
5

wsclient

WebSocket client for Node.js
JavaScript
4
star
6

tourniquet

Declarative dependency injection for ruby
Ruby
4
star
7

clusterl

An experimental self-organizing cluster framework
Erlang
4
star
8

ocamlobjs

A tool to determine the order in which to link object files for OCaml programs
OCaml
3
star
9

koan

A MUSH client for Mac OS X
Objective-C
3
star
10

objection

a lisp with aspirations of being useful
C
3
star
11

writing

A git repo in which to keep my tech writing
Haskell
2
star
12

dataviz-presentation

My slides for ChicagoWebConf 2011
JavaScript
2
star
13

old-emacs-config

My current Emacs configuration
Emacs Lisp
2
star
14

telnet-rb

Library for connecting to MU* games
Ruby
2
star
15

csci4700

A C-- compiler implemented for CSCI 4700 at UNO
C
2
star
16

pki_machine

Assembler and simulator for CSCI4700 at UNO.
C++
2
star
17

mg

Distributed computation of DNA tag mutations
Erlang
2
star
18

slime

Git clone of the SLIME CVS repo
Common Lisp
1
star
19

rwh

Exercises from Real World Haskell
Haskell
1
star
20

showoff-go-haskell

ODLUG: Language Double Feature
Ruby
1
star
21

muon

A web-based MU client
Go
1
star
22

envoy

a personal proxy for MU logging
Go
1
star
23

rcfiles

My rc files
Shell
1
star
24

socketeer

A Websocket to TCP-Socket proxy
Go
1
star
25

.emacs.d

My Emacs Configuration (Emacs24)
Emacs Lisp
1
star
26

keen-elisp

Some emacs minor modes that I use
Emacs Lisp
1
star
27

really-old-emacs-config

My personal emacs config
Emacs Lisp
1
star
28

resume

My Resume
1
star
29

muproxy

A proxy for logging MUX sessions. It implements a subset of RFC 1928 (SOCKSv5).
Go
1
star
30

ferrite

A lisp with aspirations of being useful
C
1
star
31

soong

A library for building IRC bots
1
star