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

Provide implicit pre-validation of test step parameters #18

Open
mimir-d opened this issue Oct 28, 2021 · 0 comments
Open

Provide implicit pre-validation of test step parameters #18

mimir-d opened this issue Oct 28, 2021 · 0 comments

Comments

@mimir-d
Copy link
Member

mimir-d commented Oct 28, 2021

Issue by insomniacslk
Monday Feb 24, 2020 at 18:32 GMT
Originally opened as https://github.com/facebookincubator/contest/issues/53


Almost every plugin will have to replicate certain steps to validate its parameters, e.g.:

  • ensure that all and only the supported parameters are passed
  • ensure that the passed parameters have the right types
  • ensure that a parameters receives the correct number of parameters (e.g. zero, more-than-zero, at-least-one, between-2-and-3, etc)

All of the above checks can be offloaded from the plugin developer, and done in a consistent and declarative manner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant