Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any fake data generator that works with Android?

What I'm looking for is some library like Perl's Data::Faker, Ruby's factory_girl. Something that allows me to generate random Strings, Dates, ... for testing.

I saw this other question. But I want something that has been used by someone with Android.

like image 334
Tanausú González Avatar asked Feb 08 '12 13:02

Tanausú González


1 Answers

I tried java-faker, jFairy - they don't work on android. So I find fluttercode.datafactory - it's ok for android. Add following to your app build.gradle to use it:

compile 'org.fluttercode.datafactory:datafactory:0.8'

Usage example: http://java.dzone.com/articles/generate-test-data-datafactory

like image 69
IlyaEremin Avatar answered Sep 23 '22 21:09

IlyaEremin