# How do I test my package while avoiding adding large alternative dependencies?

**URL:** https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838
**Category:** General Usage
**Created:** [November 26, 2022, 4:28am UTC](https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838 "2022-11-26T04:28:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [November 26, 2022, 4:59am UTC](https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838/2 "2022-11-26T04:59:57Z")

</div>

For RecipesBase: [How to test plot recipes? - #6 by giordano](https://discourse.julialang.org/t/how-to-test-plot-recipes/2648/6).

As a general answer to your question, you can add [test-specific dependencies](https://pkgdocs.julialang.org/v1/creating-packages/#Adding-tests-to-the-package) which will be installed only when running the test, not when using your package normally.

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838)._
