# \[ANN\] TestEnv.jl: Activate your test enviroment, so you can use your test dependencies

**URL:** <https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739>\
**Category:** Package Announcements\
**Created:** [August 3, 2021, 10:52am UTC](https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739 "2021-08-03T10:52:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Post date:** [August 3, 2021, 11:20am UTC](https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739/3 "2021-08-03T11:20:09Z")

</div>

> [@Skoffer](#):
>
> Sorry for naive question, but if (when?) 1.6 is declared as LTS, this package will be less useful, since developers can switch to support 1.6+?

Less useful, yes. But still useful.  
For a few reasons:

1. some will keep supporting 1.0 forever (not many but some)
2. some prefer the `[extras]` over the separate Project.toml (I know I do, as otherwise it is too easy to lost track and mistakenly install things both as main and test deps, and potentially with conflicting compat)
3. The way to activate via [hacking on your LOAD\_PATH](https://discourse.julialang.org/t/activating-test-dependencies/48121/7) is kinda undocumented and people run into issues with it. See that [thread](https://discourse.julialang.org/t/activating-test-dependencies/48121/7). TestEnv uses a different mechanism that is basically what `Pkg.test` uses.
4. `TestEnv.activate()` is nicer and easier to write than `push!(Base.LOAD_PATH, joinpath(dirname(Base.active_project()), "test"))`

But yeah, if using the LOAD\_PATH way works for you and you are happy with it, then absolutely no reason to use TestEnv. ✌

---

_[View the full topic](https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739)._
