Mercurial > repos > public > sbplib_julia
view README.md @ 842:ef78f730cbb4 feature/setup_documenter
More info in the readme
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 14 Jan 2022 10:06:48 +0100 |
parents | 221ce98d2612 |
children | c9e35f1ca269 |
line wrap: on
line source
# Sbplib ## Running tests To run all tests simply run ``` (@v1.5) pkg> activate . (Sbplib) pkg> test ``` If you want to run tests from a specific file in `test/`, you can do ``` julia> using Pkg julia> Pkg.test(test_args=["[glob pattern]"]) ``` For example ``` julia> Pkg.test(test_args=["SbpOperators/*"]) ``` to run all test in the `SbpOperators` folder, or ``` julia> Pkg.test(test_args=["*/readoperators.jl"]) ``` to run only the tests in files named `readoperators.jl`. Multiple filters are allowed and will cause files matching any of the provided filters to be run. For example ``` Pkg.test(test_args=["*/lazy_tensor_operations_test.jl", "Grids/*"]) ``` will run any file named `lazy_tensor_operations_test.jl` and all the files in the `Grids` folder. ## Generating the documentation Generating the documentation can be done using either `make` or through activating the `docs` environment and including the script `docs/make.jl` at the REPL. Using `make` there are two targets ```shell make docs make localdocs ``` The first variant generates files suitable for webserver deployment, i.e setting `prettyurls=true`. The second generates files sutible for local viewing in a web browser, i.e `prettyurls=false`. To view the documentation locally simply open `docs/build/index.html` in your web browser. When including the `docs/make.jl` script `prettyurls` is set to `false` by default. Including `docs/make.jl` from the REPL may be preferable when repeatadely building the documentation since this avoids compilation latency.