Skip to content
Faker is a pure Elixir library for generating fake data.
Branch: master
Clone or download
dependabot-preview and igas Bump ex_doc from 0.20.2 to 0.21.0 (#265)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.20.2 to 0.21.0.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md)
- [Commits](elixir-lang/ex_doc@v0.20.2...v0.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit ba1863f Jul 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github add PR template Jan 5, 2017
lib Added: Faker.Blockchain.Ethereum (#263) Jul 10, 2019
test Added: Faker.Blockchain.Ethereum (#263) Jul 10, 2019
.credo.exs Changed: Bump credo from 0.9.2 to 0.9.3 (#152) Jun 6, 2018
.formatter.exs Added: mix format config file Apr 25, 2018
.gitignore Added: Faker.Util doctests (#180) Jul 7, 2018
.gitlab-ci.yml Changed: Bump credo from 0.9.3 to 0.10.0 (#189) Aug 5, 2018
.travis.yml Added: Elixir 1.9 support (#260) Jun 25, 2019
CHANGELOG.md Added: Faker.Blockchain.Ethereum (#263) Jul 10, 2019
LICENSE Update LICENSE Jan 5, 2015
README.md Bump 0.12.0 Feb 5, 2019
USAGE.md Added: Faker.Blockchain.Ethereum (#263) Jul 10, 2019
mix.exs
mix.lock Bump ex_doc from 0.20.2 to 0.21.0 (#265) Jul 18, 2019

README.md

Faker

VersionLicenseBuild StatusIssuesDownloadsGitter

Faker is a pure Elixir library for generating fake data.

Quickstart

  • add {:faker, "~> 0.12"} to your deps in mix.exs:

    defp deps do
      [{:faker, "~> 0.12", only: :test}]
    end
  • run:

    mix deps.get
    
  • add Faker.start() to test/test_helper.exs:

    ExUnit.start()
    Faker.start()
  • jump to usage examples.

Requirements

  • OTP 18+
  • Elixir 1.4+

Usage

See documentation and usage examples.

Troubleshooting

  • If you get a message like the one below when you call Faker.Address.city/0, you need to add :faker to your application's mix file, in the applications function, as above.

    ** (FunctionClauseError) no function clause matching in Faker.Address.city_count/1
    lib/faker/address.ex:48: Faker.Address.city_count(nil)
    lib/faker/address.ex:41: Faker.Address.city/0
    

Tools

Faker was designed as a lightweight library, that's why it can be easily used with other tools.

Templating

You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.

Team

Faker was originally written by Igor Kapkov.

Current list of maintainers:

Thanks

Sponsored by Evil Martians

License

Released under the MIT License.

You can’t perform that action at this time.