Mercurial > repos > public > sbplib_julia
view README.md @ 711:df88aee35bb9 feature/selectable_tests
Switch to _test.jl suffix
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 20 Feb 2021 20:45:40 +0100 |
parents | 48a61e085e60 |
children | 6aa7677b5129 |
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`. This works by using the `@includetests` macro from the [TestSetExtensions](https://github.com/ssfrr/TestSetExtensions.jl) package. For more information, see their documentation.