Should /tests be in .gitignore?

Posted 2 months ago by trevorpan

It seems like this folder should not make it to production. However, having versions of tests also seems like a logical and good thing.

There's no mention of .gitignore here: https://laravel.com/docs/5.8/http-tests

The .env file does provide an environment where tests can be run: https://laravel.com/docs/5.8/testing#environment

Any thoughts or best practice tips?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.