Will running Pkg.test compile all of the package functions? (for precompile_execution_file in PackageCompiler)

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.