-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Easier testing (ie: adding specs) #1334
Comments
It's not too late! Here's an overview of how I'd like to see this effort tackled. In general, this is a difficult project to test. There are an infinite number of combinations possible when defining a specification. The rendering and behavior of the UI thus needs to have a very flexible mechanism for creating tests and verifying that the behavior is correct. It is impossible for us to build an "uber spec" which characterizes all the possible behaviors of the UI. Thus, we should expect that there will be a large number of specifications which need to be written in order to exhibit bugs or fixes in the user interface. Making things more complicated, there are dynamic rendering and execution behaviors as well, which means we have to hook in to the guts of the swagger-ui quite deeply in order to properly test. From a contributor's point of view, I'd like to see that end-users have the following structure available when they submit an enhancement or fix:
With the above, we should establish that single test files should be created here:
In the
|
I believe we have everything that was outlined here covered. Closing! |
As per @fehguy request.
Make the whole testing of swagger-ui a little easier to approach, and allow the addition of specs to be pain-free.
What we can do is setup a connect( or even the more powerful express) server to dish out the specs. With some middleware(connect lingo for 'plugin') for 4XXs, false mime-types etc.
The text was updated successfully, but these errors were encountered: