# Does Project.toml for tests directory need a \[compat\] section?

**URL:** https://discourse.julialang.org/t/does-project-toml-for-tests-directory-need-a-compat-section/53002
**Category:** General Usage
**Created:** [January 7, 2021, 7:03pm UTC](https://discourse.julialang.org/t/does-project-toml-for-tests-directory-need-a-compat-section/53002 "2021-01-07T19:03:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [January 7, 2021, 7:03pm UTC](https://discourse.julialang.org/t/does-project-toml-for-tests-directory-need-a-compat-section/53002/1 "2021-01-07T19:03:46Z")

</div>

Let’s say I specify test dependencies in special “name\_of\_package/test/Project.toml” file.  
Does it need to have a separate [compat] section? Can the compatibility versions differ from the ones in the main “Project.toml” file?

---

<div class="post-metadata">

### Author: ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)
#### Post date: [January 7, 2021, 7:25pm UTC](https://discourse.julialang.org/t/does-project-toml-for-tests-directory-need-a-compat-section/53002/2 "2021-01-07T19:25:24Z")

</div>

My package got turned down for registration the first time because I failed to have a [compat] section in the package Project.toml file. My Project.toml file in /test only has the dependencies that the test suite needs that are not exported by the package. It has no [compat] section, name, uuid, or version. The only section is [deps].

So my one data point says “no”.
