Meikel has a solid bencode implementation that he's going to contribute; that's 
what I'm using in my reboot of nrepl.  I think the idea of having all of the 
test interactions stored as file — maybe keeping the ones involving nontextual 
data separate — is great, and should allow other nrepl client implementations 
to reuse the same source of data as nrepl itself.

Hopefully I'll have the start of things committed to github ~Monday.

- Chas

On Jan 23, 2012, at 6:26 PM, Martin DeMello wrote:

> It is often convenient to have an nrepl client in a non-jvm language -
> so far I've written one in ocaml and Meikel Brandmeyer has one in
> factor, that I know of. I'd like to get some ideas for a way to test
> client compliance in a language agnostic manner - this will be
> especially helpful when nrepl.next is rolled out.
> 
> One idea I had was to maintain a text file with a list of
> request/response pairs, where <request> was a string and <response>
> was the expected nrepl response encoded in a standard third-party
> format like json (though i'm not sure how well that copes with binary
> blobs) - clients could then submit the request to a running server,
> decode both the nrepl response and the testfile response, and compare
> the resulting in-memory data structures. As a bonus, the official
> clojure client test suite could use this too.
> 
> The other option would be to run all the requests against the server,
> collect the responses as literal strings, and decode those in the
> client. The advantage of this would be that it would not need a server
> running (always a good thing for tests); on the other hand it's easier
> to get out of sync, or miss testing network-related issues.
> 
> martin
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to