Swagger plugins support#3056
Swagger plugins support#3056martincostello merged 10 commits intodomaindrivendev:masterfrom jvmlet:master
Conversation
support swagger plugins
martincostello
left a comment
There was a problem hiding this comment.
Please add tests.
|
There is no infrastructure in integration tests to evaluate the index.html in browser (like Selenium) and I also don't see tests for request/response interceptors. |
|
We don't test with Selenium, we test that the desired rendering effect is in the HTML as in the examples of existing tests I've directed you to. |
Great, I would expect to see test that actually asserts the js function functionality , not the template. With plugins it always there .... |
That would be testing swagger-ui itself, which isn't our code. |
Then how do you suggest to test this line ? Without Selenium I can't assert that the plugin was loaded ... |
Do what the tests I already directed you to do - check that the text of the configured plugins is in the rendered document. |
added |
test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerUIIntegrationTests.cs
Outdated
Show resolved
Hide resolved
test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerUIIntegrationTests.cs
Outdated
Show resolved
Hide resolved
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3056 +/- ##
==========================================
+ Coverage 90.49% 90.53% +0.03%
==========================================
Files 76 76
Lines 3063 3095 +32
Branches 496 504 +8
==========================================
+ Hits 2772 2802 +30
- Misses 291 293 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pull Request
The issue or feature being addressed
Closes #3049