Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] faker.js support for generating realistic test data #818

Open
SjaaLom opened this issue Apr 13, 2021 · 0 comments
Open

[Feature] faker.js support for generating realistic test data #818

SjaaLom opened this issue Apr 13, 2021 · 0 comments

Comments

@SjaaLom
Copy link

SjaaLom commented Apr 13, 2021

Hi, it would be cool to have the integrated functionality of the faker.js library. (tutorial)
This library makes it possible to call an endpoint with "real" looking data, that is different for every call. Useful for running tests on your api.

POST http://host/api/users HTTP/1.1
Content-Type: application/json

{
  "firstname": "{{$faker name.firstname}}",
  "lastname": "{{$faker name.lastname}}",
  "bio": "{{$faker lorum.words(20)}}"
}

Personally I could really use this in my test scripts, so I already took the liberty of creating a pull request for it.

But I am sure the community has some useful additions, remarks or other feedback to make this even better.
For instance, there was already some feedback suggesting to add intellisense for the available faker.js commands. This is indeed a great idea.

I would like to know if you guys and gals need this at all or how you would make this even better.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant