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
1. We first need to build dockerimage of our application:-
139
-
```bash
140
-
docker build -t node-app:1.0 .
141
-
```
142
-
143
-
2. Now we will run the keploy in record mode:-
133
+
134
+
We will run the keploy in record mode with docker-compose to start our application:-
144
135
```bash
145
-
keploy record -c "docker run -p 8000:8000 --name nodeMongoApp --network keploy-network node-app:1.0"
136
+
keploy record -c "docker compose up" --containerName "nodeMongoApp"
146
137
```
147
138
148
139
#### Let's generate the testcases.
@@ -173,7 +164,7 @@ We will get the following output in our terminal
173
164
## Running the testcases
174
165
175
166
```bash
176
-
keploy test -c "docker run -p 8000:8000 --name nodeMongoApp --network keploy-network node-app:1.0" --delay 10
167
+
keploy test -c "docker compose up --node-app" --containerName "nodeMongoApp" --delay 10
177
168
```
178
169
179
170
Our testcases will fail as the Keep-Alive connection won't be available when we are using testmode, this happen because in test mode the Keploy uses the `Mocks.yml`, which was generated in the record mode.
0 commit comments