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

Run json-schema.org's common test suite #122

Merged
merged 5 commits into from Oct 26, 2014

Conversation

mpalmer
Copy link
Contributor

@mpalmer mpalmer commented Sep 18, 2014

Implementation of #113.

Straightforward generation of test cases based on the contents of the JSON-Schema-Test-Suite repo. I decided to go wild and add it as a git submodule; if that's not cool, then some other method of dealing with the problem can be devised. At least I hid all the insanit^Wmagic behind the rake task, so nobody needs to deal with it by hand.

@mpalmer mpalmer mentioned this pull request Sep 18, 2014
require 'test/unit'
require File.expand_path('../../lib/json-schema', __FILE__)

class CommonTestSuiteTest < Test::Unit::TestCase
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this to use two spaces rather than a tab (like the other tests?) #minor_point

This is good, because it's easier to debug a problem if you know *why*
there's a problem.
@hoxworth
Copy link
Contributor

@mpalmer thanks for doing this. I had started a branch adding the common test suite, but put it on the back burner as I ran into a couple of small issues. I'll look into this more later tonight / tomorrow morning, but I am not opposed to git submodules, as long as we keep them up-to-date. 😸

@pd
Copy link
Contributor

pd commented Oct 25, 2014

👍

If no one else has objections, I've left myself a note to come back and merge this early next week.

I'd like to see some way to expose the remaining failing tests without breaking the build; something akin to rspec's pending feature. I'm not familiar enough with test/unit to have a good idea on how to do that. Any thoughts?

@pd pd mentioned this pull request Oct 25, 2014
@mpalmer
Copy link
Contributor Author

mpalmer commented Oct 25, 2014

@pd, I've just added another commit to this PR that implements skipping tests in files that are known to fail.

@hoxworth
Copy link
Contributor

I like this - I had spent some time trying to integrate the common test suite before you took this on. Going to merge with @pd 's input as well.

hoxworth added a commit that referenced this pull request Oct 26, 2014
Run json-schema.org's common test suite
@hoxworth hoxworth merged commit 024a63d into voxpupuli:master Oct 26, 2014
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

Successfully merging this pull request may close these issues.

None yet

4 participants