Provide implicit pre-validation of test step parameters
Opened this issue · 0 comments
mimir-d commented
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