#RUBY FAKE DATA CREATOR LICENSE#
See the LICENSE file for more info.Test data generation is the process of making sample test data used in executing test cases. Authorįakery is available under the MIT license.
Please see our playbook for guidelines on contributing. Use of the Swift Package Manager requires Swift >=5.3. Or alternatively using the Swift Package Manager: let package = Package( It, simply add the following line to your Podfile: pod 'Fakery'
House () //=> "chair"įakery is available through CocoaPods. Programming language faker.programming_language.name() //=> "Elixir"įaker.programming_language.creator() //=> "José Valim" Hobbit () //=> "Bilbo Baggins"į() //=> "Thorin Oakenshield"į() // => "Do you wish me a good morning, or mean that it is a good morning whether I want it or not or that you feel good this morning or that it is a morning to be good on?" Locale Fakery will also check if it exists in "en.json" file. The corresponding key is not found in a JSON file for the currently selected When you use one of the available generators and
In Resources/Locales you can find JSON files for more than 20 locales, and, of course, it's not a limit. Let city = () //=> "Oslo"įakery is quite powerful when it comes to generation of locale-specific data.
NOTE: Generated data is pretty realistic, supports a range of locales, but returned values are not guaranteed to be unique. It's useful in all the cases when you need to use some dummy data for testing, population of database during development, etc. This is a Swift port of Ruby's Faker library that generates fake data.Īre you still bothered with meaningless randomly character strings? Just relax and leave this job to Fakery.