-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Travis task to run tests against example solutions #67
Comments
This may not be the simplest thing to do, I have noticed that the required file is not always the same as the test file... the pattern doesn't hold, for example, for the leap_year exercise. They have leap_test.rb but the required file is year, rather than leap... This makes sense for the exercise, but not for matching for automated testing. |
Yeah, that's part of the reason why I haven't done it yet. I would be OK with changing the name of the require, actually, if that would help, though it pains me a bit to have a Another option would be to add a marker to the line to be replaced as a trailing comment. That would allow us to have any name for the file and still recognize it consistently. |
Whatever the plugin says, it could be thusly done (pseudo-code):
The last monkey patches the skip method so that all tests run. The prior makes it so that |
Oh, yeah, that would totally work. |
I believe this has been effectively addressed... |
Yepp. Thanks! |
There was some confusion about whether or not the order in the README has anything to do with the order of arguments expected in the test suite. This is not the case, since different languages have different idioms when it comes to enumerating. See exercism#67.
This will require a couple of small things:
require
statement to includeexample
instead of the actual file name.The text was updated successfully, but these errors were encountered: