https://github.com/subranag/mockaroo
Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!
https://github.com/subranag/mockaroo
developer-tools integration-testing interface-definitions productivity testing-tools
Last synced: 3 months ago
JSON representation
Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!
- Host: GitHub
- URL: https://github.com/subranag/mockaroo
- Owner: subranag
- License: mit
- Created: 2020-01-28T05:47:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T06:13:44.000Z (about 5 years ago)
- Last Synced: 2024-06-20T06:37:49.066Z (almost 2 years ago)
- Topics: developer-tools, integration-testing, interface-definitions, productivity, testing-tools
- Language: Go
- Homepage:
- Size: 118 KB
- Stars: 22
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Mock-a-(roo)🦘
comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!
- supports complex request matching (path/query/headers/verb)
- mock response can be fully templated; with request body/query/header params in template context
- config language is *hashicorp HCL*, **human readable with single line and multiline comments**, perfect for documenting your interface
- mock complex HTTP API and send the mockaroo file to client developer for testing; communicate intent clearly; document your API
- run integration tests locally with ease
- add delays to mock real world response times
- full support for *generating fake data* using https://github.com/brianvoe/gofakeit
- support for HTTPS in case you need it
## Getting Started: Mock HTTP Server in under a minute
- Step 1: download mockaroo latest binary [here](https://github.com/subranag/mockaroo/releases) for your target platform and rename the file to `mockaroo` you wil have to do `chmod +x mockaroo` for darwin and linux
- Step 2: add this content to a file `mock.hcl`
```hcl
server {
listen_addr = "localhost:5000"
mock "hello_world" {
request {
path = "/hello/{userName}"
verb = "GET"
}
response {
body = <