Mercurial > repos > public > sbplib_julia
view README.md @ 760:e7176fb09e98 test/type_stability
Add utility function for testing type stability using the @inferred macro to allow for tests failing, rather than producing an error.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 02 Jul 2021 14:02:45 +0200 |
parents | 1c5600a711ae |
children | 221ce98d2612 |
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.