# How to run test with coverage

**URL:** https://discuss.elastic.co/t/how-to-run-test-with-coverage/241058
**Category:** Kibana
**Created:** [July 14, 2020, 6:01am UTC](https://discuss.elastic.co/t/how-to-run-test-with-coverage/241058 "2020-07-14T06:01:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![seraphjiang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seraphjiang/32/47402_2.png) [@seraphjiang](https://discuss.elastic.co/u/seraphjiang)
#### Post date: [July 14, 2020, 6:01am UTC](https://discuss.elastic.co/t/how-to-run-test-with-coverage/241058/1 "2020-07-14T06:01:42Z")

</div>

tried to run yarn test:coverage, but failed

```auto
     yarn test:coverage

    yarn run v1.22.4
    $ grunt test:coverage
    Running "run:testCoverageServer" (run) task
    Verifying property run.testCoverageServer exists in config...ERROR
    >> Unable to process task.
    Warning: Required config property "run.testCoverageServer" missing. Use --force to continue.

    Aborted due to warnings.
    error Command failed with exit code 3.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

I could not find any document and code related to run.testCoverageServer

how could I launch test with coverage?

---

<div class="post-metadata">

### Author: ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)
#### Post date: [July 20, 2020, 8:25pm UTC](https://discuss.elastic.co/t/how-to-run-test-with-coverage/241058/2 "2020-07-20T20:25:04Z")

</div>

@seraphjiang you're not doing anything wrong. I've spotted a typo in our naming for the underlying grunt task. I'll open a PR to fix it!

Cheers

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 17, 2020, 8:37pm UTC](https://discuss.elastic.co/t/how-to-run-test-with-coverage/241058/3 "2020-08-17T20:37:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
