koidestroyer
❔ Testing: Is there a library that can automatically populate all properties in an object?
For integration tests I would love a mechanism that would grab an object, automatically populate all (or a subset thereof) properties with random values of the adequate type so I can create them on the database, retrieve the object back from the db and validate all properties.
I know that one can build so with reflection and some work, but I was wondering if such a library already exists.
9 replies