top
(README.md)
bdd [![Build Status](https://secure.travis-ci.org/101loops/bdd.png)](https://travis-ci.org/101loops/bdd) [![Coverage Status](https://coveralls.io/repos/101loops/bdd/badge.png)](https://coveralls.io/r/101loops/bdd) [![GoDoc](https://camo.githubusercontent.com/6bae67c5189d085c05271a127da5a4bbb1e8eb2c/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f736d61727479737472656574732f676f636f6e7665793f7374617475732e706e67)](http://godoc.org/github.com/101loops/bdd)
======

Go package for writing BDD-style tests.

## Example
```go
package bdd

import . "github.com/101loops/bdd"

var _ = Describe("User Service", func() {
	It("loads users by domain name", func() {
		users, err := service.loadUsersByDomain("acme.com")
		Check(err, IsNil)
		Check(users, HasLen, 2)
		Check(users[0].IsActive, IsTrue)
		Check(users[0].FirstName, Equals, "Roger")
		Check(users[0].Bio, Contains, "ACME").And("Roger").ButNot("fired")
	})
})
```

## Install
```bash
go get github.com/101loops/bdd`
```

## Documentation
http://godoc.org/github.com/101loops/bdd

## Credit
Uses [Ginkgo](http://onsi.github.io/ginkgo/) and [Gomga](http://onsi.github.io/gomega/) internally (both MIT).

## License
MIT (see LICENSE).

Imported only in test by 20 package(s)

  1. github.com/101loops/clock
  2. github.com/101loops/config
  3. github.com/101loops/country
  4. github.com/101loops/errhtml
  5. github.com/101loops/errors
  6. github.com/101loops/fileutil
  7. github.com/101loops/hrd
  8. github.com/101loops/hrd/internal
  9. github.com/101loops/hrd/internal/trafo
  10. github.com/101loops/hrd/internal/types
  11. github.com/101loops/html
  12. github.com/101loops/randgen
  13. github.com/101loops/reflector
  14. github.com/101loops/structor
  15. github.com/101loops/strutil
  16. github.com/cryptix/html
  17. github.com/customerio/clock
  18. github.com/gdavison/clock
  19. github.com/guregu/clock
  20. github.com/lf2186/html

Imports 4 package(s)

  1. github.com/onsi/ginkgo
  2. github.com/onsi/gomega
  3. github.com/onsi/gomega/format
  4. github.com/onsi/gomega/types