Avoid precompiling dependencies / Good package practice

I’m writing a software package that has some pretty beefy dependencies. Naturally, I’d expect a somewhat slow precompilation. With __precompile__(false) I have a dead time of about 30s, and with __precompile__(true) it’s about 10 seconds slower.

As a developer, I’m not always interested in loading every dependency when I’m running tests. Can any wizards here recommend good practice / hygiene so I can save myself time during the workday?

I think one way is to use Revise.jl and manually run the runalltests.jl script every iteration in the REPL

1 Like

You mean include("test/runtests.jl")? (I’m not trying to be pedantic, it’s just that I am not 100% sure if this is what you mean.)

1 Like

yeah, or some people like to have a runalltest() defined and just call that function everytime