<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"></head>It took me about 12 rounds of git bisect, but I found it.  The line in test_helper.rb that parallelizes the test to the number of processors is what takes the test coverage from like 86% down to 1.3%.<br><br><a href="https://github.com/openstreetmap/openstreetmap-website/blob/588a8cb604db24924ac378884e1534fb486d1600/test/test_helper.rb#L35">https://github.com/openstreetmap/openstreetmap-website/blob/588a8cb604db24924ac378884e1534fb486d1600/test/test_helper.rb#L35</a><br><br>I'm guessing this is fine on Travis because they give you 1 cpu.  Shrug, I don't know.<br><br>Anyway with this figured out I'll get back to minitests.<br><br>Brian<br><br>--<br>Brian DeRocher<br><br><div class="gmail_quote">On May 16, 2020 11:37:28 PM EDT, Brian DeRocher via rails-dev <rails-dev@openstreetmap.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hey folks,<br><br>I'd like to get a test coverage report so I know what needs to get a <br>unit test.<br><br>I'm running bundle exec rake test:db, but the generated html report show <br>a mere 1.3% of code covered.<br><br>I'm doing this on my master which is a clone of upstream <br>openstreetmap-website.  So there's no microcosm code involved yet.<br><br>Any idea what I'm doing wrong?<br><br>Thanks,<br><br>Brian<br><br>-- <br>Brian DeRocher<br>MappingDC<hr>rails-dev mailing list<br>rails-dev@openstreetmap.org<br><a href="https://lists.openstreetmap.org/listinfo/rails-dev">https://lists.openstreetmap.org/listinfo/rails-dev</a><br></pre></blockquote></div></html>