Re: Test strategy

2013-04-22 Thread Brian Marick
On Apr 22, 2013, at 7:55 PM, Jonathon McKitrick wrote: > I guess the challenge is that the parsing and generating of the structures > from JSON descends to several layers of functions, and the database object is > created and inserted/updated at the lowest level. I've tried a bulk insert > a

Re: Test strategy

2013-04-22 Thread Jonathon McKitrick
I guess the challenge is that the parsing and generating of the structures from JSON descends to several layers of functions, and the database object is created and inserted/updated at the lowest level. I've tried a bulk insert after accumulating records into a higher level function, but somet

Re: Test strategy

2013-04-19 Thread Chris Ford
I'm a little unclear as to what your specific challenge is. I understand you're trying to test fns that take a map produced by the JSON parser, and extract specific fields. Would it be sufficient to just create literal maps to fake the output of the JSON parser, use those as inputs to your extract

Test strategy

2013-04-19 Thread Jonathon McKitrick
As a relatively new Clojure user, I have a relatively simple app which parses a complex JSON structure into a database. I have test code which verifies all the basic database functions, but I'm not sure how best to exercise all the parsing code. The JSON parser is built-in, and most of my code