Open CodyKochmann opened 5 years ago
wordsmithing:
exit_on_FIRST_crash
for clarity?strategies
might be a good name to keep, for people used to Hypothesis. alias input_types
maybe?example_count
does not convey ANY of the details you then explained in description. needs a much better name.I was hesitant to change strategies
but since I'm dumbing down custom input types to purely types, t seemed unfair to claim that strategies are an option.
The example_count
option is tricky. I wanted to just make it a value that BT calculated on its own but with how the code was structured and how diverse the systems are that are using this tool, I wasn't too confident that BT would always make the right choice.
I'm considering abstracting away from that detail and putting something like max_memory
, memory_limit
or something along those lines since that variable effectively is completing the calculation of how much memory the fuzz will be able to grow to.
I am happy YOU said exit_on_first_crash
because that was what was there before I committed. It just felt like a few too many characters for a variable so I wasn't sure.
The following will still be supported:
result = fuzz(fn)
basic usageseconds
parametermax_tests
parameterverbose
parameterallow
parameterThe following parameters will be remapped:
keep_testing
will becomeexit_on_crash
strategies
will becomeinput_types
The following new parameters will be added:
input_examples
- an iterable of example arguments BT will use to mutate / create test inputsexample_count
- how many unique crashes / successful io BT will collect per input type combination