랭킹으로 돌아가기

elixirs/faker

Elixir

Faker is a pure Elixir library for generating fake data.

testelixirfakertestingseedingseedtesting-toolsqaphoenixdatadatabasefake-content
스타 성장
스타
1.2k
포크
261
주간 성장
이슈
30
5001k
2014년 4월2018년 5월2022년 6월2026년 7월
README

Faker

build Version Hex Docs License Issues Downloads Gitter Last Updated

Faker is a pure Elixir library for generating fake data.

Quickstart

  • add {:faker, "~> 0.19.0-alpha.4"} to your deps in mix.exs:

    defp deps do
      [
        {:faker, "~> 0.19.0-alpha.4", 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 19+
  • Elixir 1.6+

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:

Contributing

Do you want to become a maintainer?

See our CONTRIBUTING.md and start contributing today. We usually elect new maintainers based on contributions.

Thanks

Sponsored by Evil Martians

License

Released under the MIT License.

관련 저장소
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

TypeScriptnpmApache License 2.0playwrighttesting
playwright.dev
93.2k6.1k
typicode/json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

JavaScriptnpmMIT Licenseapifake
75.7k7.3k
bazelbuild/bazel

a fast, scalable, multi-language and extensible build system

JavaMavenApache License 2.0bazelbuild
bazel.build
25.6k4.5k
goldbergyoni/javascript-testing-best-practices

📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2025)

JavaScriptnpmMIT Licensenodejstesting
testjavascript.com
24.6k2.1k
mochajs/mocha

☕️ Classic, reliable, trusted test framework for Node.js and the browser

JavaScriptnpmMIT Licensemochajavascript
mochajs.org
22.9k3.1k
enzymejs/enzyme

JavaScript Testing utilities for React

JavaScriptnpmMIT Licenseenzymereact
enzymejs.github.io/enzyme/
19.8k2k
vitest-dev/vitest

Next generation testing framework powered by Vite.

TypeScriptnpmMIT Licensevitetest
vitest.dev
16.9k1.9k
pytest-dev/pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

PythonPyPIMIT Licenseunit-testingtest
pytest.org
14.4k3.3k
DevExpress/testcafe

A Node.js tool to automate end-to-end web testing.

JavaScriptnpmMIT Licensetestcafeend-to-end-testing
testcafe.io
9.9k680
webdriverio/webdriverio

Next-gen browser and mobile automation test framework for Node.js

TypeScriptnpmMIT Licensejavascriptwebdriverio
webdriver.io
9.8k2.7k
olistic/warriorjs

🏰 An exciting game of programming and Artificial Intelligence

TypeScriptnpmMIT Licensewarriorjswarrior
warriorjs.com
9.5k500
apache/jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services

JavaMavenApache License 2.0javaperformance
jmeter.apache.org
9.5k2.3k