Skip to content

Commit 5de18fe

Browse files
author
Atul Chahar
committed
feat: Add terminal screenshots for Ruby quickstart
- Add keploy record screenshot - Add API test generation screenshot - Add keploy test screenshot - Copy images to static/img/sinatra-postgres/ Signed-off-by: Atul Chahar <atul.chahar.0410@gmail.com>
1 parent 849a0e6 commit 5de18fe

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

49.8 KB
Loading
220 KB
Loading
243 KB
Loading

versioned_docs/version-4.0.0/quickstart/samples-sinatra-postgres.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Capture the test cases:
5151
keploy record -c "docker compose up" --container-name "sinatra-app" --buildDelay 50
5252
```
5353

54+
![Keploy Record Sinatra](/img/sinatra-postgres/keploy-record-sinatra.png)
55+
5456
🔥 **Make some API calls**. Postman, Hoppscotch, or even curl - take your pick!
5557

5658
### Generate testcases
@@ -97,6 +99,8 @@ curl http://localhost:4567/users/1
9799
curl -X DELETE http://localhost:4567/users/2
98100
```
99101

102+
![Generate Testcases Sinatra](/img/sinatra-postgres/generate-testcases-sinatra.png)
103+
100104
And once you are done, you can stop the recording and give yourself a pat on the back! With that simple spell, you've conjured up test cases with mocks! Explore the **keploy** directory and you'll discover your handiwork in `tests` directory and `mocks.yml`.
101105

102106
### Time to run the testcases 🏃
@@ -105,6 +109,8 @@ And once you are done, you can stop the recording and give yourself a pat on the
105109
keploy test -c "docker compose up" --containerName "sinatra-app" --delay 10
106110
```
107111

112+
![Keploy Test Sinatra](/img/sinatra-postgres/keploy-test-sinatra.png)
113+
108114
You can also check the test summary from your CLI.
109115

110116
## Running App Locally on Linux/WSL 🐧

0 commit comments

Comments
 (0)