-
Notifications
You must be signed in to change notification settings - Fork 10
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
[js refactor] mark invalid/valid #13
Comments
👍 on going with a |
There are several different (maybe overlapping) "categories" I see here:
There are probably more. |
@joto since we'll likely be using these fixtures outside of a javascript library, how would you prefer to know which fixtures are valid/invalid/semi? Trying to figure out how writing tests around these fixtures can be most helpful. For example, would you prefer some sort of directory structure like:
Or would you be happy just parsing the information from the info.json file? |
I am happy with parsing this from a JSON file or I'll just take the info from there and hardcode it in some script or so. Directory structure is unlikely to be enough because that can only encode one "category" (or would become overly complex with nested dirs or so). |
👍 on putting in the JSON file. This would also make it easier to update when we add "categories", and less noisy git diffs. |
Excellent @joto @springmeyer - easier for me 😉 |
How about this description added to the README? Validity: each fixture includes information about whether they are valid according to the specification versions and possible error outcomes if they are invalid. If any of the fixtures are invalid, they must include an
|
@mapsam Looks good to me. We'll see how well it works once we are testing our tests and can always introduce more categories or so. |
👍 indeed - thanks for 👀 @joto! |
First pass completed in 9daefde |
👍 |
We should mark fixtures as valid or invalid (or possibly some sort of enum for semi-invalids #10) so downstream applications can assert based on success/lack thereof of parsing particular fixtures.
cc @springmeyer
The text was updated successfully, but these errors were encountered: