Coder Social home page Coder Social logo

gesjeremie / faker-elixir Goto Github PK

View Code? Open in Web Editor NEW
148.0 11.0 6.0 229 KB

[unmaintained] FakerElixir generates fake data for you.

Home Page: https://hexdocs.pm/faker_elixir_octopus/FakerElixir.html

Elixir 100.00%
elixir elixir-lang phoenix seeding testing database dummy dummy-data factory

faker-elixir's Issues

Option to generate only unique data

It'd be really great if FakerElixir had a way to generate unique data. This is really useful when certain fields in your mock object require uniqueness to be valid. Basically, if you have this requirement, your test will randomly fail based on whether the data generated for that unique field was actually unique.

Not really sure if it is relevant to this library, since it's more related to mock-ups than generating data.

FakerElixir.Lorem.sentences

I forgot to add the sentences/0 method, right now it doesn't respect the guide lines of the generator since we have characters/0 and words/0.

I will fix it in the next release: 0.11.2.

Tests not running properly

I was trying to run my tests with mix test and it outputs this strange error

** (Mix) Could not start application faker_elixir_octopus: could not find application file: faker_elixir_octopus.app

I suspect something went wrong with Faker Elixir, do you have any lead on the matter ?

Start application in seeds (or test)

Thanks for this great package. One side note, you don't need to add :faker_elixir_octopus to your application if you're only going to use it in seeds or tests.

Example

# seeds.exs
Application.start(:faker_elixir_octopus)

or

# test_helper.exs
Application.start(:faker_elixir_octopus)

Join to Faker package

https://hex.pm/packages/faker and this package have pretty much the same propose. Speaking from my experiences in another ecosystem like Node and Ruby, it's really painful when you have that many "duplicate in term of propose of the package" We hurts ourself doing these practices.

Anyway, because this is a long conversation.

As today https://hex.pm/packages/faker is the most popular and used on hex so I would love to this package integrate with faker https://github.com/igas/faker if there is not problem with @GesJeremie and @igas, for the good of the whole community it's better to join forces, resource and time rather than split it up. So both of you don't have to deal with releases, updates, feedbacks, PRs and so on by your own.

I would @igas to see if you can get some work together on what @GesJeremie have and you have on faker ๐Ÿ™

I love diversity as much you do but when there is big fundamental differences, and even that, I would argue that most of the time is actually separate abstractions and create new architecture rather than just how it's coded

Please @GesJeremie work with @igas on this, and my apologies if I don't understand the differences between both packages because I am talking as an user from hex

Possible misconception of Date

Hi,

Very good library. I wanted to use FakerElixir.Date for my project and realized there's no distinction between Time, Date and DateTime ; maybe you could improve this part ?

Time would be a real time
Date would be a strict date
DateTime would be a date with a time

Right now there's only a Date and sounds more like a DateTime to me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.