Skip to content

Commit

Permalink
Add mock test instruction in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shpun817 committed Sep 10, 2022
1 parent 3c79b01 commit 2fbb964
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/actix3_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ Run server with auto-reloading:
cargo install systemfd
systemfd --no-pid -s http::8000 -- cargo watch -x run
```

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/actix_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ Run server with auto-reloading:
cargo install systemfd cargo-watch
systemfd --no-pid -s http::8000 -- cargo watch -x run
```

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/axum_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
1. Execute `cargo run` to start the server

1. Visit [localhost:8000](http://localhost:8000) in browser

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/graphql_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
1. Execute `cargo run` to start the server

1. Visit [localhost:3000/api/graphql](http://localhost:3000/api/graphql) in browser

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/jsonrpsee_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ curl --location --request POST 'http://127.0.0.1:8000' \
}'

```

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/poem_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
1. Execute `cargo run` to start the server

1. Visit [localhost:8000](http://localhost:8000) in browser after seeing the `server started` line

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/rocket_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
1. Execute `cargo run` to start the server

1. Visit [localhost:8000](http://localhost:8000) in browser after seeing the `🚀 Rocket has launched from http://localhost:8000` line

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
7 changes: 7 additions & 0 deletions examples/salvo_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
1. Execute `cargo run` to start the server

1. Visit [localhost:8000](http://localhost:8000) in browser after seeing the `server started` line

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```
11 changes: 10 additions & 1 deletion examples/tonic_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
Simple implementation of gRPC using SeaORM.

run server using

```bash
cargo run --bin server
```

run client using

```bash
cargo run --bin client
```
```

Run mock test on the core logic crate:

```bash
cd core
cargo test --features mock
```

0 comments on commit 2fbb964

Please sign in to comment.