I think the simplest and easiest way of doing this is to init(), clone(), and test():
julia -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("<pkgname>")' If you want to include code coverage and whatnot, you'll need to put your Pkg.test() call on a separate line and pass --code-coverage to the julia executable. -E