Changeset 30593 in project for wiki/eggref/4/test-generative


Ignore:
Timestamp:
03/24/14 12:06:02 (7 years ago)
Author:
certainty
Message:

test-generative: documented the default for current-test-generative-iterations and documented the generator interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/test-generative

    r30592 r30593  
    5353<parameter>current-test-generative-iterations</parameter>
    5454The number of iterations each test shall use. This means that this amout of random inputs will be chosen to exercise your test code.
    55 This also means that your test code will be run at least that amount of times. That's why you probably want to avoid side-effecting code with these kinds of tests.
     55This also means that your test code will be run at least that amount of times. That's why you probably want to avoid side-effecting code with these kinds of tests. The current default is '''100''.
    5656
    5757<syntax>(test-generative ((binding gen) ...) body ...)</syntax>
     
    6060in your test code. It will exercise the code at most '''current-test-generative-iterations''' + 1 amount of times with your random data and stop as soon as one of your tests fails.
    6161If a test has failed it shows the iteration in which it failed and the seed-values that have been used in that iteration.
     62
     63'''What is a generator?:'''
     64A generator is just a thunk that is expected to return the data upon invokation.
     65
    6266
    6367=== See also
Note: See TracChangeset for help on using the changeset viewer.