comparison 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
comparison
equal deleted inserted replaced
701:38f9894279cd 709:48a61e085e60
8 ``` 8 ```
9 9
10 If you want to run tests from a specific file in `test/`, you can do 10 If you want to run tests from a specific file in `test/`, you can do
11 ``` 11 ```
12 julia> using Pkg 12 julia> using Pkg
13 julia> Pkg.test(test_args=["testLazyTensors"]) 13 julia> Pkg.test(test_args=["[glob pattern]"])
14 ``` 14 ```
15 For example
16 ```
17 julia> Pkg.test(test_args=["SbpOperators/*"])
18 ```
19 to run all test in the `SbpOperators` folder, or
20 ```
21 julia> Pkg.test(test_args=["*/readoperators.jl"])
22 ```
23 to run only the tests in files named `readoperators.jl`.
24
25
15 This works by using the `@includetests` macro from the [TestSetExtensions](https://github.com/ssfrr/TestSetExtensions.jl) package. For more information, see their documentation. 26 This works by using the `@includetests` macro from the [TestSetExtensions](https://github.com/ssfrr/TestSetExtensions.jl) package. For more information, see their documentation.