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

Improve Testimony token validation #121

Open
elyezer opened this issue Aug 4, 2016 · 1 comment
Open

Improve Testimony token validation #121

elyezer opened this issue Aug 4, 2016 · 1 comment

Comments

@elyezer
Copy link
Collaborator

elyezer commented Aug 4, 2016

Currently the validate command inspects if the minimum tokens are defined across all the test cases. Would be even better if Testimony allows users to define some validation rules like:

  • Token's value is in a list of choices
  • Token's value is unique (useful for validating a identification tokens)
  • Token's value is matched by a regex
  • Token's value is integer, float, etc...

To provide even more power each token can have one or more validation rules and Testimony must report all rules that have failed.

A proposed solution would be allowing the user to specify a path to a YAML file where the validation rules are defined for the validate command. The YAML file could be also a config file where the minimum tokens, tokens and other information can be defined.

@elyezer
Copy link
Collaborator Author

elyezer commented May 24, 2019

This was started on #142. More improvements will be done later.

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

No branches or pull requests

1 participant