# Package extention for Test allways loads

**URL:** https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668
**Category:** Package Management
**Tags:** question
**Created:** [January 11, 2024, 10:23am UTC](https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668 "2024-01-11T10:23:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)
#### Post date: [January 11, 2024, 10:23am UTC](https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668/1 "2024-01-11T10:23:07Z")

</div>

Hi all 🙂

I want to use some default during testing and put them in my packages in the ext foulder.

In the `Project.toml` I put:

```julia
[weakdeps]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[extensions]
TestExt = "Test"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

```

I have the problem that the extention files are always loaded even though I never wrote `using Test`. How would I fix that!

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [January 11, 2024, 2:35pm UTC](https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668/2 "2024-01-11T14:35:51Z")

</div>

This should be fixed by [Extensions: make loading of extensions independent of what packages are in the sysimage by KristofferC · Pull Request #52841 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/52841).

The issue here is that Test is in the sysimage so in some sense it is always loaded.
