# No Test Summary

**URL:** <https://discuss.circleci.com/t/no-test-summary/25162>\
**Category:** Running Tests\
**Tags:** nodejs\
**Created:** [September 15, 2018, 11:28pm UTC](https://discuss.circleci.com/t/no-test-summary/25162 "2018-09-15T23:28:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael-brade](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael-brade](https://discuss.circleci.com/u/michael-brade)\
**Post date:** [September 15, 2018, 11:29pm UTC](https://discuss.circleci.com/t/no-test-summary/25162/1 "2018-09-15T23:29:00Z")

</div>

Hi, I have the same problem the posts below have described: I set up a `.circleci/config.yml` (see [https://circleci.com/gh/michael-brade/LaTeX.js/12#config/containers/0](https://circleci.com/gh/michael-brade/LaTeX.js/12#config/containers/0)), added the `store_test_results`, artifacts are uploaded properly – and yet, the webgui in the tab “Test Summary” claims I need to setup tests. I don’t know how, and I don’t understand the answers in those posts:

[https://discuss.circleci.com/t/test-summary-not-being-displayed/22948](https://discuss.circleci.com/t/test-summary-not-being-displayed/22948)  
[https://discuss.circleci.com/t/how-to-view-test-reports/9654](https://discuss.circleci.com/t/how-to-view-test-reports/9654)

How and where do I define `$CIRCLE_TEST_REPORTS`? I found no examples or documentation. The second thread actually claims that it should work without setting the variable.

Any ideas?

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [September 15, 2018, 11:33pm UTC](https://discuss.circleci.com/t/no-test-summary/25162/2 "2018-09-15T23:33:04Z")

</div>

Are you using the `junit` reporter as shown in this example: [https://circleci.com/docs/2.0/collect-test-data/#mocha-for-nodejs](https://circleci.com/docs/2.0/collect-test-data/#mocha-for-nodejs)

---

<div class="post-metadata">

**Author:** ![michael-brade](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael-brade](https://discuss.circleci.com/u/michael-brade)\
**Post date:** [September 15, 2018, 11:38pm UTC](https://discuss.circleci.com/t/no-test-summary/25162/3 "2018-09-15T23:38:22Z")

</div>

Yes, I am. This is the config from `package.json`:

```auto
    "testc": "nyc ./node_modules/.bin/mocha --reporter mocha-junit-reporter --reporter-options mochaFile=./test/test-results.xml test/*.ls;",
    "cover": "nyc report --reporter=html --reporter=text --reporter=lcovonly --report-dir=test/coverage;"

```

And in `config.yml`:

```auto
     - run:
          name: Run unit tests
          command: npm run testc
      - run:
          name: Generate code coverage
          command: npm run cover
          when: always

      - store_artifacts:
          path: test/test-results.xml
          prefix: tests
      - store_artifacts:
          path: test/coverage
          prefix: coverage
      - store_test_results:
          path: test/test-results.xml
          prefix: tests

```

Do I have to upload the whole `test` folder? Or should the `test-results.xml` be enough?

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [September 15, 2018, 11:51pm UTC](https://discuss.circleci.com/t/no-test-summary/25162/4 "2018-09-15T23:51:18Z")

</div>

> [@michael-brade](#):
>
> How and where do I define `$CIRCLE_TEST_REPORTS` ?

This is no longer required in 2.0

> [@michael-brade](#):
>
> Do I have to upload the whole `test` folder? Or should the `test-results.xml` be enough?

I think this may be your issue. [Per the doc](https://circleci.com/docs/2.0/collect-test-data/#mocha-for-nodejs) it expects a `path` instead of a file. Could you try removing the file and see if that resolves the issue?

```auto
      - store_test_results:
          path: test

```

That should do it.

---

<div class="post-metadata">

**Author:** ![michael-brade](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael-brade](https://discuss.circleci.com/u/michael-brade)\
**Post date:** [September 16, 2018, 12:04am UTC](https://discuss.circleci.com/t/no-test-summary/25162/5 "2018-09-16T00:04:01Z")

</div>

Yes indeed! Thank you very much! 🙂

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [September 16, 2018, 12:14am UTC](https://discuss.circleci.com/t/no-test-summary/25162/6 "2018-09-16T00:14:43Z")

</div>

My pleasure! Glad this is working now.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [September 26, 2018, 12:14am UTC](https://discuss.circleci.com/t/no-test-summary/25162/7 "2018-09-26T00:14:47Z")

</div>

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