about summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2016-11-24 17:48:25 +0000
committerAlyssa Ross <hi@alyssa.is>2016-11-24 17:48:25 +0000
commit75d0903317a3f2db3c91ea3a7abace073825da75 (patch)
tree2f026dd0081f195b05c4a68a5b768c8d5f175960 /.gitignore
parentb6ee2fb1c67807238943195ab88372f7121b170a (diff)
Add .env.test
It took me ages to get Mastodon set up with the tests passing because
the environment variables I needed to define weren't documented and I
had to work them out one at a time.

This change adds a .env.test file, and makes it so it isn't ignored by
git. I think it makes sense for the .env.test file to be in git, since
there's nothing secret in it, but other approaches would be to have a
.env.test.sample (like the corresponding one for production), or to set
these values in a test helper, or to adapt the tests to work with
environments other than this one. I'd be happy to make these changes if
that would be preferred.

Being able to get set up and run the tests is a pretty important part of
being able to contribute to Mastodon (or your test coverage with
suffer!), so having some sort of solution like this one is vital.
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 5dabc59d9..a60603c7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,6 @@ coverage
 public/system
 public/assets
 .env
-.env.*
+.env.production
 node_modules/
 neo4j/