# Visual Code unit tests missing reference

**URL:** <https://discourse.julialang.org/t/visual-code-unit-tests-missing-reference/32850>\
**Category:** VS Code\
**Created:** [January 1, 2020, 3:43pm UTC](https://discourse.julialang.org/t/visual-code-unit-tests-missing-reference/32850 "2020-01-01T15:43:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jandehaan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jandehaan/32/6805_2.png) [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Post date:** [January 1, 2020, 3:43pm UTC](https://discourse.julialang.org/t/visual-code-unit-tests-missing-reference/32850/1 "2020-01-01T15:43:56Z")

</div>

I’m using Visual Studio Code to develop my Julia package.  
My `runtests.jl` file contains the following:

```julia
using mypackage
using Test
include("test_module1.jl")

```

All unit tests in file `test_module1.jl` pass. So there is no problem with that.

However, Visual Studio Code flags all references to functions exported by mypackage with “Missing reference”. The result is a very colorful display with almost every line highlighted.

Moving the line `using mypackage` to file `test_module1.jl` doesn’t resolve the issue.

How can I get Visual Studio Code to resolve all those missing references in my unit test files?
