Skip to content

Commit 3fb0262

Browse files
authored
Add import Pkg for ease of copy-pasting (#552)
1 parent 4ec5d7f commit 3fb0262

File tree

1 file changed

+3
-3
lines changed
  • tutorials/docs-01-contributing-guide

1 file changed

+3
-3
lines changed

tutorials/docs-01-contributing-guide/index.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ Other sections of the website (anything that isn't a package, or a tutorial) –
2727

2828
### Tests
2929

30-
Turing, like most software libraries, has a test suite. You can run the whole suite the usual Julia way with
30+
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
3131

3232
```julia
33-
Pkg.test("Turing")
33+
import Pkg; Pkg.test("Turing")
3434
```
3535

3636
The test suite subdivides into files in the `test` folder, and you can run only some of them using commands like
3737

3838
```julia
39-
Pkg.test("Turing"; test_args=["optim", "hmc", "--skip", "ext"])
39+
import Pkg; Pkg.test("Turing"; test_args=["optim", "hmc", "--skip", "ext"])
4040
```
4141

4242
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

0 commit comments

Comments
 (0)