-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs for mysql app integration with keploy #305
Conversation
Signed-off-by: EraKin575 <[email protected]>
Signed-off-by: EraKin575 <[email protected]>
Signed-off-by: EraKin575 <[email protected]>
> The `--delay` flag? Oh, that's just giving your app a little breather (in seconds) before the test cases come knocking. | ||
|
||
Your results should be looking all _snazzy_, like this: | ||
<img src="/docs/img/testrun-node-fail.png" alt="Sample Keploy Test Result Gin MongoDB" width="100%" style={{ borderRadius: '5px' }}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MongoDb is present instead of MySQL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image added is incorrect as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update based on the actual output of the test results, ts
is not present in this application.
|
||
We'll be running our sample application right on Linux, but just to make things a tad more thrilling, we'll have the database (MySql) chill on Docker. Ready? Let's get the party started!🎉 | ||
|
||
#### 🍃 Kickstart MongoDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too:-
|
||
Worry not, just add the ever-changing fields (like our **ts** here) to the **noise parameter** to **dodge those assertions**. | ||
|
||
<img src="/docs/img/testrun-node-pass.png" alt="Sample Keploy Test Result Node MongoDB" width="100%" style={{ borderRadius: '5px' }}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same with here image is incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worry not, just add the ever-changing fields (like our ts here) to the noise parameter to dodge those assertions.
Sample Keploy Test Result Node sql
same here as well
> The `--delay` flag? Oh, that's just giving your app a little breather (in seconds) before the test cases come knocking. | ||
|
||
Your results should be looking all _snazzy_, like this: | ||
<img src="/docs/img/testrun-node-fail.png" alt="Sample Keploy Test Result Gin MongoDB" width="100%" style={{ borderRadius: '5px' }}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image added is incorrect as well
|
||
Make API Calls using [Hoppscotch](https://hoppscotch.io), [Postman](https://postman.com) or cURL command. Keploy with capture those calls to generate the test-suites containing testcases and data mocks. | ||
|
||
````bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> The `--delay` flag? Oh, that's just giving your app a little breather (in seconds) before the test cases come knocking. | ||
|
||
Your results should be looking all _snazzy_, like this: | ||
<img src="/docs/img/testrun-node-fail.png" alt="Sample Keploy Test Result Gin MongoDB" width="100%" style={{ borderRadius: '5px' }}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update based on the actual output of the test results, ts
is not present in this application.
`--containerName`: The container name in the `docker-compose.yml` for traffic interception. | ||
|
||
```sh | ||
keploy record -c "docker compose up" --containerName "nodesqlapp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/Sonichigo/samples-typescript/blob/main/js-mysql/docker-compose.yaml
In the docker-compose.yml file the containerName is not present. there this method won't work unless add manually by user following the guide.
`--containerName`: The container name in the `docker-compose.yml` for traffic interception. | ||
|
||
```sh | ||
keploy record -c "docker compose up" --containerName "nodesqlapp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/Sonichigo/samples-typescript/blob/main/js-mysql/docker-compose.yaml
In the docker-compose.yml file the containerName is not present. there this method won't work unless add manually by user following the guide.
@EraKin575 Please update the PR with the requested review. |
Signed-off-by: EraKin575 <[email protected]>
Signed-off-by: EraKin575 <[email protected]>
Signed-off-by: EraKin575 <[email protected]>
@Sonichigo @EraKin575 Is this ready to merge ?? |
Pull Request Template
Description
sample app doc for mysql sample app
Fixes #1383
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Additional Context (Please include any Screenshots/gifs if relevant)
...
Checklist: