# About the use of the test suite when developing a package

**URL:** <https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [March 20, 2024, 9:45am UTC](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862 "2024-03-20T09:45:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mzaffalon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzaffalon/32/214168_2.png) [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Post date:** [March 20, 2024, 10:12am UTC](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862/2 "2024-03-20T10:12:50Z")

</div>

I think this is because `LinearAlgebra` is part of the standard library.

In your specific case, add `LinearAlgebra` to your `test` environment:

```julia
] activate test
add LinearAlgebra

```

~~Since you have a `Project.toml` for the test environment, I did not find a better workflow than doing the following: after loading `Revise.jl`, start Julia in the `MyPkg` base directory:~~

```julia
] activate .
using MyPkg
] activate test
include("test/runtests.jl")

```

EDIT: as @goerz points out, there is a [better way](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862/11) of doing this.

(Almost) Any change you make to `MyPkg` will be tracked by `Revise.jl` so you can develop your tests and the package at the same time. Remember to comment out `using MyPkg` in `runtests.jl`; you should re-enable it before running the test suite with

```julia
] test

```

---

_[View the full topic](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862)._
