giorgiosironi / eris

Eris is a porting of Quickcheck and property-based testing tools to the PHP and PHPUnit ecosystem.
MIT License
411 stars 32 forks source link

Suggestion: Using Faker for domain based Generators? #99

Open baig opened 7 years ago

baig commented 7 years ago

First of all, thank you for open sourcing such great work.

Do you think it would be a good idea to use Faker for Domain based generators?

giorgiosironi commented 7 years ago

Thought about it before. I think it could be an optional dependency, used in some generators. Do you have some sample domains in mind that could benefit?

svanpoeck commented 7 years ago

Jumping in a bit late, but these domains come to mind: person generation (first|last name, address, phone, email, ...) barcodes random text (lorem ipsum based apparently) real text (very limited though it seems) colour date & time ... For more details check https://github.com/fzaninotto/Faker/blob/master/readme.md

drupol commented 2 years ago

I'm working on making my own domain based library and there is a working adapter for faker. It is also fully typed.

I'll publish it soon.

drupol commented 2 years ago

You can find the project here: https://github.com/drupol/typed-generators

Just to be clear, this is a test project. The idea is to have something fully typed that can be used in any static analysis testing. It can be used for generating random typed values for sure anywhere else of course.

Let me know what you think.