Re: On Testing

2014-11-02 Thread Roelof Wobben
Here a example where midje could provide more info. I have this function : (defn pr134 [element a-seq] (and (contains? a-seq element) (nil? element)) ) and I have this test-function : (ns exercises.core-test (:use midje.sweet) (:use [exercises.core])) (facts "about `pr134`" (fa

Re: On Testing

2014-11-01 Thread Devin Walters
http://jakemccrary.com/blog/2014/06/22/comparing-clojure-testing-libraries-output/ has some good examples. I'm currently using humane-test-output. It's worked nicely for me. '(Devin Walters) > On Nov 1, 2014, at 7:00 PM, Alex Miller wrote: > > Additionally, I think it would be helpful to enum

Re: On Testing

2014-11-01 Thread Alex Miller
Additionally, I think it would be helpful to enumerate example (failing) tests and their output by current clojure.test. On Saturday, November 1, 2014 1:58:32 PM UTC-5, Alex Miller wrote: > > It would be great if someone could enumerate more explicitly what "better" > test output means. What ar

Re: On Testing

2014-11-01 Thread Brian Marick
On Nov 1, 2014, at 1:58 PM, Alex Miller wrote: > It would be great if someone could enumerate more explicitly what "better" > test output means. What are the specific problems in the current test output > reporting? If there's any sort of consensus about test reporting, specifically how diff

Re: On Testing

2014-11-01 Thread Ashton Kemerling
I can say for certain that at a minimum better indentation of data structures to the console would be a must, a vector with 4+ hash maps in it are currently unreadable and I have to copy to an editor to indent and analyze.  Beyond that, I can imagine the need for a structural diff that tells me

Re: On Testing

2014-11-01 Thread Alex Miller
It would be great if someone could enumerate more explicitly what "better" test output means. What are the specific problems in the current test output reporting? Similar problem list for test runner might be useful. Discussion here is fine but ultimately needs to land on a design wiki page. I

Re: On Testing

2014-10-31 Thread Ashton Kemerling
That's an excellent idea, currently at least test.check hacks on top of clojure.test by using macros that emit clojure.test tests.  Beyond that it seems that the #1 wish is better output. I don't think that ought to be very hard for us to pull off as a community. On Fri, Oct 31, 2014 at 6:56 P

Re: On Testing

2014-10-31 Thread Andrew Rosa
+1 to something like humane-test-output being part of core library. There is value for the community to have some foundation library share across our test frameworks? Something like `test.runners`, to encapsulate error reporting and organization? Bit crazy, I know, but the idea come after seein

Re: On Testing

2014-10-31 Thread John Louis Del Rosario
Would be great if humane-test-output was part of clojure.test. Would make it easier for beginners to find it. On Friday, October 31, 2014 11:19:11 PM UTC+8, Eli Naeher wrote: > > On Fri, Oct 31, 2014 at 9:52 AM, Ashton Kemerling > wrote: > > >> It's my opinion that these two libraries are lar

Re: On Testing

2014-10-31 Thread Lucas Bradstreet
I totally agree about pr-str in test.check. Quite often I want to copy and paste the failure into a repl and play around, but need to re-add missing quotation marks or quote lists. > On 31 Oct 2014, at 22:05, Jessica Kerr wrote: > > My top wish it more readable output from test.check when run

Re: On Testing

2014-10-31 Thread Jessica Kerr
My top wish it more readable output from test.check when running within clojure.test In particular, I want to know the value of each generated parameter at the first failure, and at the simplest failure. Currently that prints as part of a map, but if empty-string is generated, that does not sho

Re: On Testing

2014-10-31 Thread Eli Naeher
On Fri, Oct 31, 2014 at 9:52 AM, Ashton Kemerling wrote: > It's my opinion that these two libraries are largely complete aside from > some human interface improvements (quality of output for example), but > clearly not everyone agrees with me. > Hi Ashton, Check out https://github.com/pjstadig

Re: On Testing

2014-10-31 Thread László Török
"I tweeted recently that I thought that Clojure is super testable, and I was genuinely surprised about the number of people who disagreed with me." My 2c. Without explicitly citing those complaints, it will be difficult to conduct a meaningful debate. 2014-10-31 14:52 GMT+00:00 Ashton Kemerling

Re: On Testing

2014-10-31 Thread Ashton Kemerling
I don't want to speak for others, I notified everyone involved on Twitter that I made this thread so they can voice their own complaints. On Fri, Oct 31, 2014 at 9:02 AM, László Török wrote: > "I tweeted recently that I thought that Clojure is super testable, and I > was genuinely surprised abo

On Testing

2014-10-31 Thread Ashton Kemerling
I tweeted recently that I thought that Clojure is super testable, and I was genuinely surprised about the number of people who disagreed with me.  There's been a lively discussion about what the best testing frameworks in clojure currently are, and what the built in solutions (clojure.test and

Re: Opinion on testing strategies?

2013-04-07 Thread Jonah Benton
The feedback that comes immediately to mind: * it sounds like property #3 complects black box vs white box and specification vs implementation concerns * it sounds like the feature functions potentially combine the state and calculation layers in ways that should be internally reused, but also are

Re: Opinion on testing strategies?

2013-04-06 Thread Sean Corfield
On Sat, Apr 6, 2013 at 5:42 PM, Steven Degutis wrote: > What do you think? What approach would you take in this situation? I guess I'd turn it around and ask what new problems you think functional programming introduces for testing - and why do you think that? In general, I've found that writing

Re: Opinion on testing strategies?

2013-04-06 Thread Ulises
Forgive me if I completely misunderstood your question. Replies inline. One way is to use `with-redefs`. This technique would be used at every > level along the pyramid (except the bottom level which doesn't call > anything else). > > This would be similar to mocking, correct? If so, what'd be wro

Opinion on testing strategies?

2013-04-06 Thread Steven Degutis
Disclaimer: this isn't strictly about Clojure, more about semi-functional programming techniques, which Clojure excels at. (Plus I'm using Clojure for it.) Lately I've been experimenting with ditching the conventional MVC approach to writing a web app. Now controllers are just dead-simple func

Re: [ANN] modern-cljs - tutorial 9 on testing (part 1)

2012-12-02 Thread Mimmo Cosenza
ops. thanks mimmo On Dec 2, 2012, at 10:15 PM, Michael Klishin wrote: > 2012/12/3 Mimmo Cosenza > I just published the 9th tutorial of the series modern-cljs. > > It talks about testing. It uses the CLJS proposed patch as a true sample > case to work on. > HIH > > The link: > https://gith

Re: [ANN] modern-cljs - tutorial 9 on testing (part 1)

2012-12-02 Thread Michael Klishin
2012/12/3 Mimmo Cosenza > I just published the 9th tutorial of the series modern-cljs. > > It talks about testing. It uses the CLJS proposed patch as a true sample > case to work on. > HIH > The link: https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-09.md Thank you! -- MK ht

[ANN] modern-cljs - tutorial 9 on testing (part 1)

2012-12-02 Thread Mimmo Cosenza
Hi, I just published the 9th tutorial of the series modern-cljs. It talks about testing. It uses the CLJS proposed patch as a true sample case to work on. HIH My best Mimmo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group