-
Notifications
You must be signed in to change notification settings - Fork 141
Javascript Runner Broken #43
Comments
Looks like the newlines aren't escaped anymore... is that the only problem? |
Mine are all passing when running Also yes newlines are no longer escaped but instead replaced with the |
So for <:LF:>, is this for user output, or test-framework output, or both? |
test-framework output. Basically, each stdout line within the runner output is considered a new data item. However if a single data item is supposed to have multiple lines within it, then things get messed up.
So we change it to
|
Changing the test frameworks to support this is hard. I don’t know if this is possible in Julia. Can this be done in the exec function in util.js? On Jul 15, 2014, at 5:59 PM, Jake Hoffner notifications@github.com wrote:
|
If we are able to format the It couldn't be done in util.js because at that point, the data is already written to stdout and we have no way of knowing if |
Ok… well in that case there’s nothing to be done for Clojure or Julia, as I believe I don’t actually emit newlines in either one of those test-frameworks. I’ll double check. This is pretty hard to do for Haskell, however... On Jul 15, 2014, at 6:37 PM, Jake Hoffner notifications@github.com wrote:
|
We need new lines though. For example:
would end up being shown to users as a single passed statement saying |
Looks like Haskell should be possible. The Formatters.hs just needs to have its |
Well, hspec wraps a lot of other utilities that have newlines in their output, so I was worried about that. |
Not sure how this happened, I hope it wasn't one of my commits...
But when I run:
docker build -t codewars/cli-runner . ; docker run -i --entrypoint mocha codewars/cli-runner test/*
I get:
The text was updated successfully, but these errors were encountered: