Mercurial > repos > public > sbplib_julia
diff README.md @ 709:48a61e085e60 feature/selectable_tests
Add function for selecting tests
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 20 Feb 2021 20:31:08 +0100 |
parents | 76aa1486124a |
children | 6aa7677b5129 |
line wrap: on
line diff
--- a/README.md Mon Feb 15 11:13:12 2021 +0100 +++ b/README.md Sat Feb 20 20:31:08 2021 +0100 @@ -10,6 +10,17 @@ 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 +``` +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.