From 3fb0262f4599905cd220d3e067bfdcb741c1f75c Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 15 Nov 2024 18:08:53 +0000 Subject: [PATCH] Add `import Pkg` for ease of copy-pasting (#552) --- tutorials/docs-01-contributing-guide/index.qmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/docs-01-contributing-guide/index.qmd b/tutorials/docs-01-contributing-guide/index.qmd index 3ee296ef8..78d240708 100755 --- a/tutorials/docs-01-contributing-guide/index.qmd +++ b/tutorials/docs-01-contributing-guide/index.qmd @@ -27,16 +27,16 @@ Other sections of the website (anything that isn't a package, or a tutorial) – ### Tests -Turing, like most software libraries, has a test suite. You can run the whole suite the usual Julia way with +Turing, like most software libraries, has a test suite. You can run the whole suite by running `julia --project=.` from the root of the Turing repository, and then running ```julia -Pkg.test("Turing") +import Pkg; Pkg.test("Turing") ``` The test suite subdivides into files in the `test` folder, and you can run only some of them using commands like ```julia -Pkg.test("Turing"; test_args=["optim", "hmc", "--skip", "ext"]) +import Pkg; Pkg.test("Turing"; test_args=["optim", "hmc", "--skip", "ext"]) ``` This one would run all files with "optim" or "hmc" in their path, such as `test/optimisation/Optimisation.jl`, but not files with "ext" in their path. Alternatively, you can set these arguments as command line arguments when you run Julia