Skip to content

ex_machina + stream_data #351

@ibarchenkov

Description

@ibarchenkov

Hello ex_machina maintainers.

I've discovered that data for Ecto factories could be generated using StreamData library. Here's an example. The most compelling thing to me in this approach is that I can define one set of functions and use them simultaneously as Ecto factories in unit/controller tests and as generators in property-based testing.
I have a working solution and almost ready to share it with the community.
Please, consider the following questions:

  • Do you want me to contribute such functionality to your project?
  • If not, do you mind if I borrow some code in params_for* functions?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions