stream_data
stream_data copied to clipboard
Data generation and property-based testing for Elixir. 🔮
At the moment, I see `uniq_list_of/2` that allows for taking a generator and producing a unique list of items from that generator. But is there anything like `maps |> uniq_by(&Map.take(&1,...
While working on the PR for #129, I encountered `# TODO: test shrinking` at the top of the `StreamDataTest` module. Since there is no open issue for it, it seemed...
The test suite fails with the seed `531973` producing ``` 1) test gen all supports generation and filtering clauses (ExUnitPropertiesTest) test/ex_unit_properties_test.exs:6 ** (StreamData.FilterTooNarrowError) too many consecutive elements were filtered out....
Implementation of #129 - [x] Date generator - [x] Tests - [ ] Time generator - [ ] Tests - [ ] DateTime generator - [ ] Tests - [...
A solution to a self-inflicted problem discovered while using StreamData to generate replies for `Mox` pretending to be `Elasticsearch.API`. Let's say you got carried away with the realism of your...
Closes #97 I dug around some more and managed to come up with the following change to fix #97. It doesn't seem to help with deeply nested cases of `tree/2`,...
I'm not sure if the title is correct or makes sense. Generally I'm having a hard time getting reasonable counter-examples. I have some code that needs to filter a list...
I'm opening this issue based on discussions in IRC to start working towards a proposal for stateful model checking powered by stream_data. ## Existing solutions I'll try to provide an...
In QuickCheck and PropEr, you can add functions to a property which collect statistical data about the generated data or add labels for classification of generated data. These information are...
Hi! I'm using `stream_data` to test my `Ecto` schemas, but I ran into a small problem concerning `min_length` opt given to `StreamData.string(:printable)`. property "string(:printable) min_length" do # While this works...