https://github.com/dutchcoders/mockingbird
Go framework for testing services.
https://github.com/dutchcoders/mockingbird
Last synced: 4 months ago
JSON representation
Go framework for testing services.
- Host: GitHub
- URL: https://github.com/dutchcoders/mockingbird
- Owner: dutchcoders
- Created: 2015-05-23T16:07:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T20:43:26.000Z (about 10 years ago)
- Last Synced: 2024-12-27T09:12:33.632Z (6 months ago)
- Language: Go
- Size: 102 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mockingbird
Mockingbird is a framework that mocks traffic to standard services. This can be used for testing api implementations. We want to create a framework that will mock all kind of different available services and extensible with own implementations.
[](https://travis-ci.org/dutchcoders/mockingbird)
## Implementation
```
func Test(t *testing.T) {
Convey("slack", t, func() {
client := slack_oauth.NewOAuthClient("", "", "")Convey("redeem code", func() {
NewServer()accessToken, _ := client.RedeemCode("test")
So(accessToken.Token, ShouldEqual, "valid-token")
})Convey("auth.test", func() {
NewServer()api := slack.New("")
response, _ := api.AuthTest()So(response, ShouldEqual, &slack.AuthTestResponse{Url: "https://myteam.slack.com/", Team: "My Team", User: "cal", TeamId: "T12345", UserId: "U12345"})
})})
}
```## Contributions
Contributions are welcome.
## Creators
**Remco Verhoef**
-
-**Gerred Dillon**
## Copyright and license
Code and documentation copyright 2011-2015 Remco Verhoef.
Code released under [the MIT license](LICENSE).