# Activating test dependencies?

**URL:** https://discourse.julialang.org/t/activating-test-dependencies/48121
**Category:** General Usage
**Created:** [October 10, 2020, 7:07pm UTC](https://discourse.julialang.org/t/activating-test-dependencies/48121 "2020-10-10T19:07:09Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [October 13, 2020, 9:24am UTC](https://discourse.julialang.org/t/activating-test-dependencies/48121/7 "2020-10-13T09:24:40Z")

</div>

Post Julia 1.1 solution:

### Setup:

1. Create a `test/Project.toml`
2. in it all your test-time dependencies.
3. Remove them and the other test time stuff from the main Project.toml

### use

For testing `] test` will work as before.

For manually activating:

1. Activate the main environment
2. Do `push!(Base.LOAD_PATH, "./test")`, (assuming currently directory is in basedir of project)
3. You should now be able to using any package from either `Project.toml`

This feels like a gross hack to me.  
There has been issues about creating nicer ways to activate stacked environments.  
Maybe @StefanKarpinski or @kristoffer.carlsson have more thought in this direction

---

_[View the full topic](https://discourse.julialang.org/t/activating-test-dependencies/48121)._
