<p>I think I've figured out a way to get both to work at the same time. Reading through the coveralls code, it <a href="https://github.com/lemurheavy/coveralls-ruby/blob/8121b40c691821b919846bf17346511459caee57/lib/coveralls.rb#L50">sets its own formatter</a> when you run <code>Coveralls.wear!</code>. So the multiformatter stuff needs to come after that point.</p>
<p>Here's my proposed solution:</p>
<p><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/gravitystorm/openstreetmap-website/commit/d43315f738a415823c42e4b7d3df83c1d3aa9263/hovercard" href="https://github.com/gravitystorm/openstreetmap-website/commit/d43315f738a415823c42e4b7d3df83c1d3aa9263">gravitystorm@<tt>d43315f</tt></a></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=536437" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/krubokrubo">@krubokrubo</a> does this also work for you?</p>
<p>If so, then I propose that we run both local simplecov generation, and the coveralls stuff, by default.</p>
<p>However, since local code coverage statistics are not of much interest to most people, I would like to try to silence the simplecov summary output when the tests are run (probably by making a custom formatter and/or overriding the <a href="https://github.com/colszowka/simplecov-html/blob/a9fe0369d62e95fb9cc838c912346e483b4f4a30/lib/simplecov-html.rb#L28-L30">output_message</a> method). If there's a simple way to suppress this message, then I can make a pull request.</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/issues/2066#issuecomment-461110051">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLdKkPjK5PfuQQy364SGMcLwNkl0Pks5vKw-mgaJpZM4YnR88">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLQCZi3-h28m0fQTIeap65vZAVX6aks5vKw-mgaJpZM4YnR88.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@gravitystorm in #2066: I think I've figured out a way to get both to work at the same time. Reading through the coveralls code, it [sets its own formatter](https://github.com/lemurheavy/coveralls-ruby/blob/8121b40c691821b919846bf17346511459caee57/lib/coveralls.rb#L50) when you run `Coveralls.wear!`. So the multiformatter stuff needs to come after that point.\r\n\r\nHere's my proposed solution:\r\n\r\nhttps://github.com/gravitystorm/openstreetmap-website/commit/d43315f738a415823c42e4b7d3df83c1d3aa9263\r\n\r\n@krubokrubo does this also work for you?\r\n\r\nIf so, then I propose that we run both local simplecov generation, and the coveralls stuff, by default. \r\n\r\nHowever, since local code coverage statistics are not of much interest to most people, I would like to try to silence the simplecov summary output when the tests are run (probably by making a custom formatter and/or overriding the [output_message](https://github.com/colszowka/simplecov-html/blob/a9fe0369d62e95fb9cc838c912346e483b4f4a30/lib/simplecov-html.rb#L28-L30) method). If there's a simple way to suppress this message, then I can make a pull request."}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2066#issuecomment-461110051"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2066#issuecomment-461110051",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2066#issuecomment-461110051",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>