Skip to content

Commit

Permalink
Add import Pkg for ease of copy-pasting (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm authored Nov 15, 2024
1 parent 4ec5d7f commit 3fb0262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/docs-01-contributing-guide/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fb0262

Please sign in to comment.