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

Question about default settings #447

Open
pvm opened this issue Jul 17, 2024 · 0 comments
Open

Question about default settings #447

pvm opened this issue Jul 17, 2024 · 0 comments

Comments

@pvm
Copy link

pvm commented Jul 17, 2024

As described the documentation page:

Fixtures are used to load a "**fake**" set of data into a database that can then be used for testing or to **help give you some interesting data while you're developing your application**.

I do understand that fixtures can be used to warmup projects sometimes, but I think as the description says it's mainly used for testing/developing.

My question is: why we have the DataFixtures folder default to the src folder of the project, if it's main usage is during dev/testing? Why not default it to tests folder or even to a ./DataFixtures folder?
I understand also that I can customize the folder, but in the context of a application, if something is only relatable to tests, I think it should not be into the source folder. It's not required for the project to be working in a production environment (unless I need to have a warmup set of data or something like that).

Could someone please comment on this?
Thank you very much!

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