-
-
Notifications
You must be signed in to change notification settings - Fork 5
-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Test-before-submit feature #94
Comments
@canweriotnow Sorry it's taken me so long to get back to you. I'm still traveling, and expect to catch up with a bunch of open issues and discussions on Exercism next week. |
I do think that tracks should make running tests as easy as possible for the students. I don't think test running belongs as part of the Exercism cli. Disclaimer: I'm an xruby maintainer and a testing extremist. |
Yeah I like that. Part of what I realized I was looking for in #117 and looking for tracks' various discussions on the subject.
There are some interesting problems to solve when incorporating tests into the CLI, the most prominent being: given a language track and an exercise directory, how does the
|
I've added a note to the CLI redesign issue, and I'm also tracking this as a question for the nextercism prototype. I'm going to go ahead and close the issue. |
While working on https://github.com/canweriotnow/exercism-emacs I got to thinking about how easy it is to run ERT on elisp exercises, and how trivial it would be to add a run-test hook before the submit action on
exercism.el
Then I got to thinking, since most tracks (sadly excluding my own, i.e. xelisp and xscheme, for the moment) have test runner scripts in their repos, perhaps this could be a useful addition to the CLI as well; I grok some tracks like to do one-at-a-time testing (xruby leaps to mind), requiring hte user to uncomment tests after each feature is implemented, but I don't see this as a downside; I'm thinking something like this (I'll just mock the CLI here, obvi Emacs interaction would be a little different):
The underlying premise being that the exercism client (Emacs plugin or CLI) could run the test properly, so we would also get:
And so on...
@kytrinyx this is most of what I wanted to chat about last week, as I'm thinking through tooling...
Anyhow, thoughts on the utility/practicality of this approach would be appreciated... I think even declaring a testing procedure specification in the config provided by the API might do it, rather than hard-coding it into the client... still in hammocking mode on this.
The text was updated successfully, but these errors were encountered: