<p></p>
<blockquote>
<p>So how do the test database(s) get created?</p>
</blockquote>
<p>The DB is created by specifying a config ENV var for the <a href="https://hub.docker.com/_/postgres" rel="nofollow">postgres Docker image</a>; that happens at this line of <a href="https://github.com/jalessio/openstreetmap-website/blob/801d5b6261be6da4c1d47fc9679a8c74ec699370/docker-compose.yml#L23">docker-compose.yml</a>.</p>
<blockquote>
<p>And having the tests pass is a key part of the development environment.</p>
</blockquote>
<p>lol <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p>
<p>This might be putting too much pressure on the Docker setup. The <a href="https://github.com/jalessio/openstreetmap-website/blob/801d5b6261be6da4c1d47fc9679a8c74ec699370/.travis.yml#L3-L41">test config we’ve defined here</a> continues to run the application tests outside of Docker <a href="https://github.com/openstreetmap/openstreetmap-website/blob/1b4a06adef58262a3e9eba47049a6ca212d88be4/.travis.yml">just as in the default branch, pre-3002</a>. The <a href="https://github.com/jalessio/openstreetmap-website/blob/801d5b6261be6da4c1d47fc9679a8c74ec699370/.travis.yml#L42-L59">Docker-specific test</a> just checks that the dev environment results in a functional Rails site so that casual contributors can test their changes. As an occasional contributor, I never run the test suite locally and rely on the CI to do it for me.</p>
<p>I’ll read up on Geckodriver and PhantomJS.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747545760">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM7ZPYCU67CWTNNVGTSVIVYZANCNFSM4JDURRXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLIM3V2PWGCMNUS2PQLSVIVYZA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFSHKJIA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747545760",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-747545760",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>