stathissideris / spec-provider

Infer Clojure specs from sample data. Inspired by F#'s type providers.
519 stars 22 forks source link

Incrementally add examples to spec-provider #30

Closed jiangts closed 4 years ago

jiangts commented 4 years ago

Is it possible to add data to the stats incrementally, rather than passing all the data in upfront with infer-specs? I'm inspired by the FAQ that says: "...you can use a lazy sequence to stream your huge table through it if you feel that's necessary..."

jiangts commented 4 years ago

oh I see. It looks like you can continue the reduce happening in spec-provider.stats/collect to get the right stats, and call summarize manually when need to see the spec results. I think that's sufficient for me :)