Skip to content
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

feat: support detailed mock server #377

Merged
merged 2 commits into from
Apr 21, 2024
Merged

feat: support detailed mock server #377

merged 2 commits into from
Apr 21, 2024

Conversation

LinuxSuRen
Copy link
Owner

This feature allows users to have much more control over the mock server.

@LinuxSuRen LinuxSuRen added enhancement New feature or request backend labels Apr 20, 2024
Copy link

codacy-production bot commented Apr 20, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.08% 90.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (e53a8c5) 11654 5367 46.05%
Head commit (37b2727) 11674 (+20) 5385 (+18) 46.13% (+0.08%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#377) 20 18 90.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more

Copy link

github-actions bot commented Apr 20, 2024

There are 20 test cases, failed count 0:

See all test records
Name Average Max Min Count Error
createSuite 3.645651ms 3.645651ms 3.645651ms 1 0
2.361371ms 3.664603ms 991.073µs 9 0
ConvertTestSuite 2.059113ms 2.059113ms 2.059113ms 1 0
query-funcs 2.008945ms 2.008945ms 2.008945ms 1 0
GenerateCode 1.810442ms 1.810442ms 1.810442ms 1 0
GetSuggestedAPIs-no-testsuite-found 1.780844ms 1.780844ms 1.780844ms 1 0
get-testcase-not-found 1.533631ms 1.533631ms 1.533631ms 1 0
suites 1.41632ms 1.41632ms 1.41632ms 1 0
list-testcases-not-found 1.288979ms 1.288979ms 1.288979ms 1 0
suite 1.267001ms 1.267001ms 1.267001ms 1 0
ListTestCase 1.262342ms 1.262342ms 1.262342ms 1 0
UpdateTestSuite 950.168µs 950.168µs 950.168µs 1 0
get-popular-headers 925.727µs 925.727µs 925.727µs 1 0
DeleteTestSuiteNotFound 917.94µs 917.94µs 917.94µs 1 0
DeleteTestSuite 917.446µs 917.446µs 917.446µs 1 0
version 724µs 724µs 724µs 1 0
list-stores 710.681µs 710.681µs 710.681µs 1 0
list-code-generators 699.3µs 699.3µs 699.3µs 1 0
GetSecrets 694.555µs 694.555µs 694.555µs 1 0
listConverters 569.893µs 569.893µs 569.893µs 1 0

Reported by api-testing.

Copy link

github-actions bot commented Apr 20, 2024

There are 23 test cases, failed count 0:

See all test records
Name Average Max Min Count Error
createSuite 3.033640264s 3.033640264s 3.033640264s 31 0
createTestCase 11.799072ms 11.799072ms 11.799072ms 31 0
downloadTool 5.386189ms 5.386189ms 5.386189ms 31 0
downloadExtGit 4.880972ms 4.880972ms 4.880972ms 31 0
getTestCase 4.382934ms 4.382934ms 4.382934ms 31 0
CreateStore 4.381922ms 4.381922ms 4.381922ms 5 0
runGRPCTestCase 4.340612ms 4.340612ms 4.340612ms 5 0
createGRPCTestCase 3.847647ms 3.847647ms 3.847647ms 31 0
createGRPCSuite 3.464072ms 3.464072ms 3.464072ms 31 0
updateTestCase 3.305106ms 3.305106ms 3.305106ms 5 0
updateSuite 2.882523ms 2.882523ms 2.882523ms 5 0
deleteTestCase 2.638255ms 2.638255ms 2.638255ms 5 0
GetSuggestedAPIs 2.504987ms 2.504987ms 2.504987ms 5 0
getGRPCTestCase 2.498153ms 2.498153ms 2.498153ms 31 0
getSuite 2.470438ms 2.470438ms 2.470438ms 5 0
findUnknownFunction 1.18827ms 1.18827ms 1.18827ms 31 0
oauth 978.45µs 978.45µs 978.45µs 5 0
functionsQuery 952.849µs 952.849µs 952.849µs 31 0
popularHeaders 642.633µs 642.633µs 642.633µs 5 0
debugCmdLine 637.898µs 637.898µs 637.898µs 5 0
listCodeGenerator 629.426µs 629.426µs 629.426µs 5 0
favicon 594.033µs 594.033µs 594.033µs 5 0
version 529.51µs 529.51µs 529.51µs 5 0

e2e-testing

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@yuluo-yx yuluo-yx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LinuxSuRen LinuxSuRen merged commit 062f96f into master Apr 21, 2024
15 checks passed
@LinuxSuRen LinuxSuRen deleted the feat/mock-item branch April 21, 2024 09:49
LinuxSuRen pushed a commit that referenced this pull request Jun 17, 2024
* chore(deps): update whyour/qinglong docker tag to v2.16.2

* Update app version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants