From 160e254d17954ef3fdb2b7664d3b4fde2a0fa22f Mon Sep 17 00:00:00 2001 From: Hong Ge <3279477+yebai@users.noreply.github.com> Date: Fri, 7 Jun 2024 20:35:19 +0100 Subject: [PATCH] Update index.qmd --- tutorials/docs-01-contributing-guide/index.qmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tutorials/docs-01-contributing-guide/index.qmd b/tutorials/docs-01-contributing-guide/index.qmd index cb27cfe9e..2726c1d9b 100755 --- a/tutorials/docs-01-contributing-guide/index.qmd +++ b/tutorials/docs-01-contributing-guide/index.qmd @@ -28,7 +28,13 @@ The test suite subdivides into files in the `test` folder, and you can run only 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, or otherwise set the global `ARGS` variable, and call `include("test/runtests.jl")`. +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 + +```julia +julia --project=. -e 'import Pkg; Pkg.test(; test_args=ARGS)' -- optim hmc --skip ext +``` + +Or otherwise, set the global `ARGS` variable, and call `include("test/runtests.jl")`. ### Style Guide