Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This Pull request is majorly to integrate Keploy(an E2E testing tool) with TYK. By using Keploy, developers need not write any code to create E2E test files, all they have to do is hit some API requests to the running application(TYK) and the test cases will be created automatically. For more information regarding keploy please visit the website.
To install and run keploy please follow the installation guide
I have recorded few test cases like
I have then ran the recorded test cases, below are the coverage reports.
keploy tests coverage
With just 4 api calls keploy has achieved 10% coverage and tested the E2E flow.
NOTE :
Related Issue
#5945
Motivation and Context
This feature makes it easy to create E2E test case and run them with ease. It gives huge coverage in just 5-10 API calls instead of writing 100 unit tests which are unreliable.
How This Has Been Tested
This feature itself is about adding a testing tool . This tool is internally tested by the Keploy team.
Screenshots (if appropriate)
Types of changes
Checklist