|
1 | 1 | # mocktail
|
2 |
| - |
3 |
| -mocktail is a minimal framework for mocking HTTP and gRPC services in Rust with support for streaming. |
4 |
| - |
5 |
| -<!-- [](https://crates.io/crates/mocktail) |
| 2 | +[](https://crates.io/crates/mocktail) |
6 | 3 | [](https://docs.rs/mocktail)
|
7 |
| -[](LICENSE) --> |
| 4 | +[](LICENSE) |
| 5 | + |
| 6 | +mocktail is a **minimal** crate for mocking HTTP and gRPC servers in Rust with support for streaming. |
8 | 7 |
|
9 | 8 | # Table of contents
|
10 | 9 | * [Features](#features)
|
11 |
| -* [Usage](#usage) |
| 10 | +* [Getting Started](#getting-started) |
12 | 11 | * [Examples](#examples)
|
13 | 12 |
|
14 | 13 | # Features
|
15 | 14 | - Mocks HTTP and gRPC servers
|
16 | 15 | - Mocks defined in Rust using a simple, ergonomic API
|
17 | 16 | - Supports HTTP streaming
|
18 | 17 | - Supports gRPC unary, client-streaming, server-streaming, and bidirectional-streaming methods
|
19 |
| -- Performs matching using built-in matchers or custom matchers |
| 18 | +- Match requests to mock responses using built-in matchers or custom matchers |
20 | 19 |
|
21 |
| -# Usage |
| 20 | +# Getting Started |
22 | 21 | 1. Add `mocktail` to `Cargo.toml` as a development dependency:
|
23 | 22 | ```toml
|
24 | 23 | [dev-dependencies]
|
25 |
| - mocktail = { git = "https://github.com/IBM/mocktail.git", version = "0.2.0-alpha" } |
| 24 | + mocktail = { git = "https://github.com/IBM/mocktail.git", version = "0.2.1-alpha" } |
26 | 25 | ```
|
27 | 26 |
|
28 |
| -2. See [mocktail-tests](/mocktail-tests/) crate for usage examples. |
| 27 | +2. For now, see [examples](/mocktail-tests/tests/examples) in the `mocktail-tests` crate. Additional documentation coming soon. |
29 | 28 |
|
30 | 29 | # Examples
|
31 |
| -See [mocktail-tests](/mocktail-tests/) crate. |
| 30 | +See [examples](/mocktail-tests/tests/examples) in the `mocktail-tests` crate. |
| 31 | + |
| 32 | +# Related projects |
| 33 | +This crate takes inspiration from other great mocking libraries including: |
| 34 | +- [wiremock](https://github.com/wiremock/wiremock) |
| 35 | +- [wiremock-rs](https://github.com/LukeMathWalker/wiremock-rs) |
| 36 | +- [httpmock](https://github.com/alexliesenfeld/httpmock) |
0 commit comments