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

How to test failing instance files #12

Open
toddhickerson opened this issue Sep 16, 2014 · 0 comments
Open

How to test failing instance files #12

toddhickerson opened this issue Sep 16, 2014 · 0 comments

Comments

@toddhickerson
Copy link

How do you recommend setting up test fixtures that are designed to fail. For example, if the JSON Schema has the property as "required" but the instance file (test fixture) does not contain that property, the validation should fail. What if you want that failure to actually be a "success" as far as grunt is concerned since you designed that test to ensure that the required property is provided and fails validation when not present? (Think NUnit "Exception Expected".)

Do you have an example of how to do this with grunt-tv4?

And thanks for a really great plug-in!

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