# Best practices for multi project repos

**URL:** <https://community.codecov.com/t/best-practices-for-multi-project-repos/173>\
**Category:** Support\
**Created:** [April 30, 2019, 10:26am UTC](https://community.codecov.com/t/best-practices-for-multi-project-repos/173 "2019-04-30T10:26:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charklewis](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@charklewis](https://community.codecov.com/u/charklewis)\
**Post date:** [April 30, 2019, 10:26am UTC](https://community.codecov.com/t/best-practices-for-multi-project-repos/173/1 "2019-04-30T10:26:05Z")

</div>

### Description

I’m new to Codecov and best practices for multi-project repos. What is the best way of setting up Codecov when test are run separately in different folders?

Currently I’m only testing the code coverage for mini\_app\_1 (example below) by uploading to Codecov in a circleci yml file after the tests are run via `command: cd mini_app_1 && yarn run codecov -t $CODECOV_TOKEN`. My goal is to find the best way to run all the tests in the mini\_app folders, then upload their reports to Codecov.

### Repository

Repo is private. This is an example of the folder structure:

```
root_folder/
     package.json
     mini_app_1/
         package.json
         tests/
         code/
    mini_app_2/
         package.json
         tests/
         code/
   mini_app_3/
         package.json
         tests/
         code/

```

### Versions

Latest version of codecov.

### Additional Information

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 13, 2019, 3:45pm UTC](https://community.codecov.com/t/best-practices-for-multi-project-repos/173/2 "2019-05-13T15:45:05Z")

</div>

Hi @charklewis,

We recommend that you run all the tests per project per commit and separate the coverage using flags. You can read more about flags here: [Flags](https://docs.codecov.io/docs/flags)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [June 14, 2019, 8:10pm UTC](https://community.codecov.com/t/best-practices-for-multi-project-repos/173/3 "2019-06-14T20:10:24Z")

</div>

Closed on June 14, 2019, 8:10pm UTC


