# Will running Pkg.test compile all of the package functions? (for precompile\_execution\_file in PackageCompiler)

**URL:** <https://discourse.julialang.org/t/will-running-pkg-test-compile-all-of-the-package-functions-for-precompile-execution-file-in-packagecompiler/43571>\
**Category:** General Usage\
**Tags:** precompilation, package-compiler\
**Created:** [July 23, 2020, 5:46pm UTC](https://discourse.julialang.org/t/will-running-pkg-test-compile-all-of-the-package-functions-for-precompile-execution-file-in-packagecompiler/43571 "2020-07-23T17:46:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Post date:** [July 23, 2020, 5:46pm UTC](https://discourse.julialang.org/t/will-running-pkg-test-compile-all-of-the-package-functions-for-precompile-execution-file-in-packagecompiler/43571/1 "2020-07-23T17:46:05Z")

</div>

I’m developing a Docker image in which I want a specific package and its functions to be precompiled in the sysimage because precompilation takes quite a while. I’m using PackageCompiler to achieve this. I’m wondering, would running Pkg.test(“Omniscape”) compile all of the functions that are unit tested?

Not sure if the scope where tests are run would result in functions not being compiled in the same way as if I ran them directly.

Thanks!
