-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Ease Testing Forms w/LocalForm
#1591
Labels
Milestone
Comments
SergioBenitez
added
enhancement
A minor feature request
help wanted
Contributions to this issue are needed
labels
Mar 25, 2021
I'll go ahead and take this one on if no one else is 🙂 |
It's yours! |
Closed
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Would it not make more sense to create a macro that implements a ToForm trait to serialise a struct to a string encoded form? I feel like that would be a common use case, given that most functions will serialise it back to a struct immediately. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Testing forms in Rocket is currently an entirely manual process:
With the addition of multipart form support, form testing verbosity is even further exacerbated:
Rocket should make testing applications with forms a much simpler task.
Here's how we might hope testing the above forms would look:
An API enabling this might resemble:
The text was updated successfully, but these errors were encountered: