longevityframework / longevity

A Persistence Framework for Scala and NoSQL
http://longevityframework.org
Other
102 stars 6 forks source link

Functionalize the test data generator API #41

Open sullivan- opened 7 years ago

sullivan- commented 7 years ago

Right now, there are two major problems with the longevity.test.TestDataGenerator API. First, it's not functional. We should use a state monad approach to keep track of the current seed. Second, you can't specify the initial seed, which makes reproducible testing harder.

Let's see if we can't remedy both of these problems, while continuing to provide an easy-to-use API.

I took a stab at this in branch named feat/test-data-gen-api, not sure how far I got or if it will still be helpful/relevant.