coverage report
Brian DeRocher
brian at derocher.org
Thu May 21 11:17:00 UTC 2020
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%.
https://github.com/openstreetmap/openstreetmap-website/blob/588a8cb604db24924ac378884e1534fb486d1600/test/test_helper.rb#L35
I'm guessing this is fine on Travis because they give you 1 cpu. Shrug, I don't know.
Anyway with this figured out I'll get back to minitests.
Brian
--
Brian DeRocher
On May 16, 2020 11:37:28 PM EDT, Brian DeRocher via rails-dev <rails-dev at openstreetmap.org> wrote:
>Hey folks,
>
>I'd like to get a test coverage report so I know what needs to get a
>unit test.
>
>I'm running bundle exec rake test:db, but the generated html report
>show
>a mere 1.3% of code covered.
>
>I'm doing this on my master which is a clone of upstream
>openstreetmap-website. So there's no microcosm code involved yet.
>
>Any idea what I'm doing wrong?
>
>Thanks,
>
>Brian
>
>--
>Brian DeRocher
>MappingDC
>
>
>_______________________________________________
>rails-dev mailing list
>rails-dev at openstreetmap.org
>https://lists.openstreetmap.org/listinfo/rails-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200521/6b4d383f/attachment.htm>
More information about the rails-dev
mailing list