Running Mastodon for integration tests

For a personal project I’m working on, and for GoToSocial, I’ve wanted to run Mastodon locally to write integration tests against. Forgejo wants this too, to test their federation code. The problem is, you want to do that against a Mastodon instance that runs in “production” mode (i.e RAILS_ENV=production), except without all the TLS and https URL generation turned on. But in production mode, you normally can’t turn this off. This is good, and safe, and sound.

Read More