From: Caleb Clausen Date: 2008-09-13T04:02:58+09:00 Subject: Re: How to use this Combinatorial testing technique On 9/11/08, ara.t.howard wrote: > > On Sep 11, 2008, at 5:41 PM, Caleb Clausen wrote: >> Even expression coverage will only give you complete code coverage; >> data coverage is >> another matter. Is there a tool or metric for assessing data coverage? >> I have no idea. >> > > path to insanity if you ask me: > > > cover_this = Array.new(10000){|i| define_method("foo_#{ i }"){ i } } Obviously complete data coverage is out of the question, for almost all cases. But your coverage of data doesn't have to be complete in order to be sufficient. Usually, you want to show that you're covering typical cases, as well as hitting all the corners and edges. But how do you know you've covered all those edges? That's what I'm wondering about. Is there some way to assess (for any language, tho ruby would be nice) how close you're getting to covering a set of data which is suitably representative of your entire set of possible data?