<aside> 💪 We have codeclimate/diff-coverage check as required at 50% threshold:

Good job!

Good job!

Write some tests!

Write some tests!

</aside>

How to check test coverage?

In pull request (recommended)

<aside> ➡️ Do this when you don’t understand why Code Climate is complaining. This clearly shows what Code Climate has processed.

</aside>

<aside> ⚠️ This method shows coverage for no more than 25 files.

<aside> ⚠️ For large diffs use test-coverage.html from Jenkins artifacts instead.

This method doesn’t highlight coverage for Large diffs, because they’re not rendered by default. I guess the extension only fills the files loaded from beginning.

I couldn’t find a workaround for this.

Untitled

  1. https://codeclimate.com/browser-extension

  2. Login into extension with your GitHub account

    Untitled

  3. Open your PR and give it a moment to load report

    Untitled

HTML report in your browser

This PR adds an HTML report to Jenkins artifacts:

https://github.com/status-im/status-go/pull/5490

In your IDE

<aside> ➡️ Use this during developing to ensure your code is test-covered

</aside>

JetBrains GoLand

VS Code

FAQ