<p>I spent some time trying to get the parallel tests to work. The main problem is surrounding the trace tests, since they make assumptions about removing files during the teardown stage. Since all the tests share the same directory, this causes test failures when one test is tearing down while the other is still using the dir.</p>
<p>I've reworked it so that the tests each get their own unique directory, using Dir.mktmpdir.</p>
<p>However, this appears to introduce some flakeyness to the test suite, and I'm not sure why. I'm sharing this WIP to see if other people also see the flakey tests, see what Travis says, and see if anyone has any better ideas!</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/2448'>https://github.com/openstreetmap/openstreetmap-website/pull/2448</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Use the settings for the destination of the gpx fixture symlinks</li>
  <li>Use unique test directories for each trace test</li>
  <li>Enable parallel tests</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2448/files#diff-0">test/controllers/api/traces_controller_test.rb</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2448/files#diff-1">test/controllers/traces_controller_test.rb</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2448/files#diff-2">test/factories/traces.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2448/files#diff-3">test/models/trace_test.rb</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2448/files#diff-4">test/test_helper.rb</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2448.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2448.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2448.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2448.diff</a></li>
</ul>

<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/2448?email_source=notifications&email_token=AAK2OLKPUMDEDLSBPVSGFCDQVZ467A5CNFSM4JSHIW5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4NP3HQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPZEIWFYL5YZA42C63QVZ467ANCNFSM4JSHIW5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLL2SZYC2YIZJHFQMILQVZ467A5CNFSM4JSHIW5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4NP3HQ.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/2448?email_source=notifications\u0026email_token=AAK2OLKPUMDEDLSBPVSGFCDQVZ467A5CNFSM4JSHIW5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4NP3HQ",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2448?email_source=notifications\u0026email_token=AAK2OLKPUMDEDLSBPVSGFCDQVZ467A5CNFSM4JSHIW5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4NP3HQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>