Skip to content

Commit

Permalink
Update sample-rust-crud-mongo.md
Browse files Browse the repository at this point in the history
Signed-off-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
  • Loading branch information
Sonichigo authored Oct 8, 2024
1 parent 76abf9f commit 6d6986a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions versioned_docs/version-2.0.0/quickstart/sample-rust-crud-mongo.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,15 @@ Open the root directory path in your terminal and then execute the following com
docker-compose up -d
```

<!-- ![TestRun](images/image1.png) -->



## Run the app
### Run the app

```bash
cargo r -r
```
The app will be running on port 8000.


## Capture testcase
#### Capture testcase

On same terminal execute the following command:

Expand Down Expand Up @@ -100,18 +96,13 @@ Afterward, create a GET all request, and you will get the following output in yo

We peformed two requests, one to create a note and one to get all notes. These requests are captured as testcases by Keploy.

---

### Run the testcases

Once more, open the terminal with the path set to the root directory of the project.

Now, let's execute the deployment in test mode :
Now, let's start keploy in test mode to run our test cases :
```bash
keploy test -c 'cargo r -r'
```


We get the following output in the terminal -

![TestRun](/img/rust-mongo-rest-test-run-2.png?raw=true)
Expand Down

0 comments on commit 6d6986a

Please sign in to comment.