You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -129,7 +131,7 @@ Server is listening at PORT 3000
129
131
130
132
Now we walkthrough how to leverage Keploy to automatically generate test cases for the application, and later test the application using Keploy.
131
133
132
-
### Generate Test Cases
134
+
####Generate Test Cases
133
135
134
136
> Note: Build the application first using `npm run build`
135
137
@@ -173,6 +175,21 @@ The above command will start recording the API calls made to the application and
173
175
174
176
> 💡 You can use Postman or any other API testing tool to test the API calls. Additionally, the application will run a swagger UI on `http://localhost:3000/api/docs` to visualize the API calls.
175
177
178
+
### Running App using Docker Compose 🐳
179
+
180
+
We will be using Docker compose to run the application as well as PostreSql on Docker container.
181
+
182
+
Lights, Camera, Record! 🎥
183
+
Fire up the application and mongoDB instance with Keploy. Keep an eye on the two key flags: -c: Command to run the app (e.g., docker compose up).
184
+
185
+
--container-name: The container name in the docker-compose.yml for traffic interception.
186
+
187
+
```bash
188
+
keploy record -c "docker compose up" --container-name "express-postgresql-prisma-app" --build-delay 50
189
+
```
190
+
191
+
**🔥 Challenge time!** Generate some test cases. How? Just make some API calls. Postman, Hoppscotch or even curl - take your pick!
192
+
176
193
### Interact with Application
177
194
178
195
Make API Calls using [Hoppscotch](https://hoppscotch.io/), [Postman](https://www.postman.com/) or [cURL](https://curl.se/) command. Keploy with capture those calls to generate the test-suites containing testcases and data mocks.
0 commit comments