Mercurial > repos > public > sbplib_julia
diff README.md @ 745:6dd9f97fc2be
Merge in feature/selectable_tests.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Mar 2021 22:21:01 +0100 |
parents | 1c5600a711ae |
children | 221ce98d2612 |
line wrap: on
line diff
--- a/README.md Fri Mar 12 19:55:39 2021 +0100 +++ b/README.md Wed Mar 17 22:21:01 2021 +0100 @@ -10,6 +10,20 @@ If you want to run tests from a specific file in `test/`, you can do ``` julia> using Pkg -julia> Pkg.test(test_args=["testLazyTensors"]) +julia> Pkg.test(test_args=["[glob pattern]"]) +``` +For example +``` +julia> Pkg.test(test_args=["SbpOperators/*"]) +``` +to run all test in the `SbpOperators` folder, or ``` -This works by using the `@includetests` macro from the [TestSetExtensions](https://github.com/ssfrr/TestSetExtensions.jl) package. For more information, see their documentation. +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.